/* -*- C++ -*- */ // $Id$ // ============================================================================ // // = LIBRARY // apps // // = FILENAME // Proxy_Handler_Connector.h // // = AUTHOR // Doug Schmidt // // ============================================================================ #if !defined (_IO_HANDLER_CONNECTOR) #define _IO_HANDLER_CONNECTOR #include "ace/Connector.h" #include "Thr_Proxy_Handler.h" class Proxy_Handler_Connector : public ACE_Connector // = TITLE // A concrete factory class that setups connections to peerds // and produces a new Proxy_Handler object to do the dirty work... { public: Proxy_Handler_Connector (void); // Initiate (or reinitiate) a connection on the Proxy_Handler. int initiate_connection (Proxy_Handler *, ACE_Synch_Options & = ACE_Synch_Options::synch); protected: // Override the connection-failure method to add timer support. virtual int handle_close (ACE_HANDLE sd, ACE_Reactor_Mask); }; #endif /* _IO_HANDLER_CONNECTOR */