summaryrefslogtreecommitdiff
path: root/tests/Conn_Test.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-06 17:44:29 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-06 17:44:29 +0000
commit0e4f7f0dc545498484bae7da7a1a177107dbdb2c (patch)
treebd0f53bda9f9388c601cb0134e786e0e0c275d5b /tests/Conn_Test.h
parentaa88e9a3d80ba9d1777ea13efce6d1736fdc23d1 (diff)
downloadATCD-0e4f7f0dc545498484bae7da7a1a177107dbdb2c.tar.gz
*** empty log message ***
Diffstat (limited to 'tests/Conn_Test.h')
-rw-r--r--tests/Conn_Test.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/Conn_Test.h b/tests/Conn_Test.h
new file mode 100644
index 00000000000..a2ad30a1d30
--- /dev/null
+++ b/tests/Conn_Test.h
@@ -0,0 +1,40 @@
+#include "ace/Service_Config.h"
+#include "ace/Svc_Handler.h"
+
+class Svc_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>
+ // = TITLE
+ // This class is the product created by both <ACE_Connector>
+ // and <ACE_Acceptor> objects.
+ //
+ // = DESCRIPTION
+ // This class gets its own header file to work around AIX C++
+ // compiler "features" related to template instantiation... It is
+ // only used by Conn_Test.cpp.
+{
+public:
+ Svc_Handler (ACE_Thread_Manager * = 0);
+ // Do-nothing constructor.
+
+ virtual int open (void *);
+ // Initialization hook.
+
+ void send_data (void);
+ // Send data to server.
+
+ void recv_data (void);
+ // Recv data from client.
+
+ int close (u_long = 0);
+ // Shutdown the <Svc_Handler>.
+
+ void in_use (int);
+ // Set the use flag (i.e., 1 means "in use", 0 means "not in use").
+
+ int in_use (void);
+ // Returns the current use flag.
+
+private:
+ int in_use_;
+ // Are we currently in use?
+};
+