diff options
author | Steve Huston <shuston@riverace.com> | 1998-07-26 01:52:28 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1998-07-26 01:52:28 +0000 |
commit | 56e1686b5862740195a9f297f4f479043815d8ad (patch) | |
tree | f76fce668a28378c3f5b372c5c78f3c06fe5f84c /ace/SPIPE_Acceptor.h | |
parent | ece4ed372a732eb165f96bc6b0bcae394bd77b6b (diff) | |
download | ATCD-56e1686b5862740195a9f297f4f479043815d8ad.tar.gz |
Restructured acceptor on Win32 to start the ConnectNamedPipe at open() time,
in overlapped mode. Now also processes the timeout in accept(), if specified.
Diffstat (limited to 'ace/SPIPE_Acceptor.h')
-rw-r--r-- | ace/SPIPE_Acceptor.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/ace/SPIPE_Acceptor.h b/ace/SPIPE_Acceptor.h index 0d86e85e91d..8036c808618 100644 --- a/ace/SPIPE_Acceptor.h +++ b/ace/SPIPE_Acceptor.h @@ -18,6 +18,10 @@ #define ACE_SPIPE_ACCEPTOR_H #include "ace/SPIPE_Stream.h" +#if defined (ACE_WIN32) +#include "ace/Synch.h" +#endif /* ACE_WIN32 */ + class ACE_Export ACE_SPIPE_Acceptor : public ACE_SPIPE { @@ -25,15 +29,6 @@ class ACE_Export ACE_SPIPE_Acceptor : public ACE_SPIPE // Defines the format and interface for the listener side of the // ACE_SPIPE_Stream. public: -#if defined (ACE_WIN32) - // = Maximum number of attempts to accept a connection - enum - { - MAX_PIPE_INSTANCES = PIPE_UNLIMITED_INSTANCES, - MAX_ACCEPT_ATTEMPTS = 3 - }; -#endif /* ACE_WIN32 */ - // = Initialization and termination methods. ACE_SPIPE_Acceptor (void); // Default constructor. @@ -77,6 +72,13 @@ public: private: int create_new_instance (int perms = 0); // Create a new instance of an SPIPE. + +#if (defined (ACE_WIN32) && defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) + ACE_OVERLAPPED overlapped_; + ACE_Manual_Event event_; + char already_connected_; +#endif /* ACE_WIN32 */ + }; #endif /* ACE_SPIPE_ACCEPTOR_H */ |