diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-05-20 23:42:15 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-05-20 23:42:15 +0000 |
commit | 30355132c85410ad529eceeb1a2bfb0c50425e2e (patch) | |
tree | 96306dd2a0850213290def49c23bb9159b3fd73a /ace/Connector.h | |
parent | 3ef716520e3ac42a8d569b306528e0a0b0fe74db (diff) | |
download | ATCD-30355132c85410ad529eceeb1a2bfb0c50425e2e.tar.gz |
ChangeLogTag: Tue May 20 18:33:07 2003 Irfan Pyarali <irfan@oomworks.com>Reactor_RefCount
Diffstat (limited to 'ace/Connector.h')
-rw-r--r-- | ace/Connector.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/ace/Connector.h b/ace/Connector.h index 9961cef2d93..42f6204b118 100644 --- a/ace/Connector.h +++ b/ace/Connector.h @@ -15,7 +15,7 @@ #include "ace/pre.h" -#include "ace/Event_Handler.h" +#include "ace/Service_Object.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once @@ -135,7 +135,7 @@ private: * Further, non-blocking connects support timeouts. */ template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> -class ACE_Connector : public ACE_Connector_Base<SVC_HANDLER> +class ACE_Connector : public ACE_Connector_Base<SVC_HANDLER>, public ACE_Service_Object { public: @@ -264,7 +264,6 @@ public: protected: // = Helpful typedefs. - typedef ACE_NonBlocking_Connect_Handler<SVC_HANDLER> NBCH; // = The following two methods define the Connector's strategies for @@ -332,6 +331,26 @@ protected: /// progress. ACE_Handle_Set &non_blocking_handles (void); + // = Dynamic linking hooks. + /// Default version does no work and returns -1. Must be overloaded + /// by application developer to do anything meaningful. + virtual int init (int argc, ACE_TCHAR *argv[]); + + /// Calls <handle_close> to shutdown the Connector gracefully. + virtual int fini (void); + + /// Default version returns address info in <buf>. + virtual int info (ACE_TCHAR **, size_t) const; + + // = Service management hooks. + /// Default version does no work and returns -1. Must be overloaded + /// by application developer to do anything meaningful. + virtual int suspend (void); + + /// Default version does no work and returns -1. Must be overloaded + /// by application developer to do anything meaningful. + virtual int resume (void); + private: /// This is the peer connector factory. ACE_PEER_CONNECTOR connector_; |