diff options
Diffstat (limited to 'ace/SPIPE_Acceptor.h')
-rw-r--r-- | ace/SPIPE_Acceptor.h | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/ace/SPIPE_Acceptor.h b/ace/SPIPE_Acceptor.h index cfcc88028ff..031ec388c76 100644 --- a/ace/SPIPE_Acceptor.h +++ b/ace/SPIPE_Acceptor.h @@ -5,45 +5,46 @@ // // = LIBRARY // ace -// +// // = FILENAME // SPIPE_Acceptor.h // // = AUTHOR // Doug Schmidt and Prashant Jain -// +// // ============================================================================ -#ifndef ACE_SPIPE_ACCEPTOR_H +#ifndef ACE_SPIPE_ACCEPTOR_H #define ACE_SPIPE_ACCEPTOR_H #include "ace/SPIPE_Stream.h" -#if defined (ACE_WIN32) -#include "ace/Synch.h" -#endif /* ACE_WIN32 */ #if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once +# pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#if defined (ACE_WIN32) +#include "ace/Synch.h" +#endif /* ACE_WIN32 */ + class ACE_Export ACE_SPIPE_Acceptor : public ACE_SPIPE { // = TITLE // Defines the format and interface for the listener side of the - // ACE_SPIPE_Stream. + // ACE_SPIPE_Stream. public: // = Initialization and termination methods. ACE_SPIPE_Acceptor (void); // Default constructor. - ACE_SPIPE_Acceptor (const ACE_SPIPE_Addr &local_sap, - int reuse_addr = 1, - int perms = ACE_DEFAULT_FILE_PERMS); + ACE_SPIPE_Acceptor (const ACE_SPIPE_Addr &local_sap, + int reuse_addr = 1, + int perms = ACE_DEFAULT_FILE_PERMS); // Initiate a passive-mode STREAM pipe listener. int open (const ACE_SPIPE_Addr &local_sap, - int reuse_addr = 1, - int perms = ACE_DEFAULT_FILE_PERMS); + int reuse_addr = 1, + int perms = ACE_DEFAULT_FILE_PERMS); // Initiate a passive-mode STREAM pipe listener. int close (void); @@ -53,10 +54,10 @@ public: // Remove the underlying mounted pipe from the file system. // = Passive connection acceptance method. - int accept (ACE_SPIPE_Stream &ipc_sap_spipe, - ACE_SPIPE_Addr *remote_addr = 0, - ACE_Time_Value *timeout = 0, - int restart = 1, + int accept (ACE_SPIPE_Stream &ipc_sap_spipe, + ACE_SPIPE_Addr *remote_addr = 0, + ACE_Time_Value *timeout = 0, + int restart = 1, int reset_new_handle = 0); // Accept a new data transfer connection. A <timeout> of 0 means // block forever, a <timeout> of {0, 0} means poll. <restart> == 1 @@ -77,9 +78,9 @@ private: // 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_; + ACE_OVERLAPPED overlapped_; + ACE_Manual_Event event_; + char already_connected_; #endif /* ACE_WIN32 */ }; |