diff options
Diffstat (limited to 'ACE/apps/Gateway/Gateway/Connection_Handler_Connector.h')
-rw-r--r-- | ACE/apps/Gateway/Gateway/Connection_Handler_Connector.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ACE/apps/Gateway/Gateway/Connection_Handler_Connector.h b/ACE/apps/Gateway/Gateway/Connection_Handler_Connector.h new file mode 100644 index 00000000000..f4e7d7d06a1 --- /dev/null +++ b/ACE/apps/Gateway/Gateway/Connection_Handler_Connector.h @@ -0,0 +1,44 @@ +/* -*- C++ -*- */ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// gateway +// +// = FILENAME +// Connection_Handler_Connector.h +// +// = AUTHOR +// Doug Schmidt +// +// ============================================================================ + +#ifndef _IO_HANDLER_CONNECTOR +#define _IO_HANDLER_CONNECTOR + +#include "ace/Connector.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "ace/SOCK_Connector.h" +#include "Connection_Handler.h" + +class Connection_Handler_Connector : public ACE_Connector<Connection_Handler, ACE_SOCK_CONNECTOR> +{ + // = TITLE + // A concrete factory class that setups connections to peerds + // and produces a new Connection_Handler object to do the dirty + // work... +public: + Connection_Handler_Connector (void); + + // Initiate (or reinitiate) a connection on the Connection_Handler. + int initiate_connection (Connection_Handler *, + ACE_Synch_Options & = ACE_Synch_Options::synch); + +}; + +#endif /* _IO_HANDLER_CONNECTOR */ |