diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
commit | 5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch) | |
tree | 5967e9ca7d44ed1d2823be9746817ebb8e025f5d /apps/Gateway/Gateway/Connection_Handler.h | |
parent | 2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff) | |
download | ATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'apps/Gateway/Gateway/Connection_Handler.h')
-rw-r--r-- | apps/Gateway/Gateway/Connection_Handler.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/apps/Gateway/Gateway/Connection_Handler.h b/apps/Gateway/Gateway/Connection_Handler.h index 876f69d97f4..3003a81874e 100644 --- a/apps/Gateway/Gateway/Connection_Handler.h +++ b/apps/Gateway/Gateway/Connection_Handler.h @@ -5,19 +5,24 @@ // // = LIBRARY // gateway -// +// // = FILENAME // Connection_Handler.h // // = AUTHOR -// Doug Schmidt -// +// Doug Schmidt +// // ============================================================================ -#if !defined (_CONNECTION_HANDLER) +#ifndef _CONNECTION_HANDLER #define _CONNECTION_HANDLER #include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/SOCK_Connector.h" #include "ace/Svc_Handler.h" #include "Config_Files.h" @@ -54,7 +59,7 @@ public: CONNECTING, // During connection establishment. ESTABLISHED, // Connection_Handler is established and active. DISCONNECTING, // Connection_Handler is in the process of connecting. - FAILED // Connection_Handler has failed. + FAILED // Connection_Handler has failed. }; // = Set/get the current state. @@ -86,7 +91,7 @@ public: void connection_role (char); char connection_role (void) const; - // = Set/get the <Event_Channel> *. + // = Set/get the <Event_Channel> *. void event_channel (Event_Channel *); Event_Channel *event_channel (void) const; @@ -100,7 +105,7 @@ public: // Perform timer-based Connection_Handler reconnection. virtual int handle_close (ACE_HANDLE = ACE_INVALID_HANDLE, - ACE_Reactor_Mask = ACE_Event_Handler::ALL_EVENTS_MASK); + ACE_Reactor_Mask = ACE_Event_Handler::ALL_EVENTS_MASK); // Perform Connection_Handler termination. protected: @@ -110,7 +115,7 @@ protected: ACE_INET_Addr local_addr_; // Address of us. - CONNECTION_ID connection_id_; + CONNECTION_ID connection_id_; // The assigned connection ID of this entry. size_t total_bytes_; |