Merge pull request #2220 from DOCGroup/revert-2217-jwi-inetwraning
[ACE_TAO.git] / ACE / tests / Conn_Test.h
blob49531fb56038c3a98da26a9a438c320771876774
1 /* -*- C++ -*- */
3 //=============================================================================
4 /**
5 * @file Conn_Test.h
7 * @author Irfan Pyarali <irfan@cs.wustl.edu>
8 */
9 //=============================================================================
12 #include "ace/Service_Config.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
15 # pragma once
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 #include "ace/Null_Condition.h"
19 #include "ace/Svc_Handler.h"
20 #include "ace/SOCK_Stream.h"
22 /**
23 * @class Svc_Handler
25 * @brief This class is the product created by both <ACE_Connector>
26 * and <ACE_Acceptor> objects.
28 class Svc_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>
30 public:
31 /// Do-nothing constructor.
32 Svc_Handler (ACE_Thread_Manager * = 0);
34 /// Initialization hook.
35 virtual int open (void *);
37 /// Prepare for recycling.
38 virtual int recycle (void * = 0);
40 /// Send data to server.
41 void send_data ();
43 /// Recv data from client.
44 void recv_data ();
46 /// Shutdown the <Svc_Handler>.
47 int close (u_long = 0);
49 /// Set <this> to idle.
50 int idle (u_long flags);