diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-12-30 06:50:29 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-12-30 06:50:29 +0000 |
commit | a5c4d8047ab58df5c45092e18ae503ad40518f0e (patch) | |
tree | daa1ac46caf738dfe049fd5ca5eafc0eb84a0eb0 /apps/Gateway/Gateway/Proxy_Handler_Connector.h | |
parent | 645a9c1a4457349320e62d85af49f62e80da53c0 (diff) | |
download | ATCD-a5c4d8047ab58df5c45092e18ae503ad40518f0e.tar.gz |
foo
Diffstat (limited to 'apps/Gateway/Gateway/Proxy_Handler_Connector.h')
-rw-r--r-- | apps/Gateway/Gateway/Proxy_Handler_Connector.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/apps/Gateway/Gateway/Proxy_Handler_Connector.h b/apps/Gateway/Gateway/Proxy_Handler_Connector.h new file mode 100644 index 00000000000..3baea75934a --- /dev/null +++ b/apps/Gateway/Gateway/Proxy_Handler_Connector.h @@ -0,0 +1,40 @@ +/* -*- 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<Proxy_Handler, ACE_SOCK_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 */ |