// -*- C++ -*- //============================================================================= /** * @file ConnectionHandler_T.h * * @author Huang-Ming Huang */ //============================================================================= #ifndef CONNECTIONACCEPTHANDLER_H #define CONNECTIONACCEPTHANDLER_H #include "ace/Event_Handler.h" #include "ace/Svc_Handler.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ #include "tao/Versioned_Namespace.h" TAO_BEGIN_VERSIONED_NAMESPACE_DECL template class ConnectionAcceptHandler : public ACE_Svc_Handler { public: virtual int open (void *); virtual void destroy (); virtual int close (u_long flags = 0); protected: virtual int handle_input (ACE_HANDLE); virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask); ~ConnectionAcceptHandler(){} private: ACE_Reactor* reactor_; }; TAO_END_VERSIONED_NAMESPACE_DECL #include "orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.h" TAO_BEGIN_VERSIONED_NAMESPACE_DECL template class ConnectionDetectHandler : public ACE_Svc_Handler { public: ConnectionDetectHandler(TAO_FTEC_Fault_Listener* listener = 0) : listener_(listener){} virtual int close (u_long flags = 0); virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask); private: TAO_FTEC_Fault_Listener* listener_; }; TAO_END_VERSIONED_NAMESPACE_DECL #if defined (ACE_TEMPLATES_REQUIRE_SOURCE) #include "orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp" #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) #pragma implementation ("ConnectionHandler_T.cpp") #endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */ #endif