summaryrefslogtreecommitdiff
path: root/apps/Gateway/Gateway/Proxy_Handler_Connector.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Gateway/Gateway/Proxy_Handler_Connector.h')
-rw-r--r--apps/Gateway/Gateway/Proxy_Handler_Connector.h40
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 */