3 //=============================================================================
7 * @author Irfan Pyarali <irfan@cs.wustl.edu>
9 //=============================================================================
12 #include "ace/Service_Config.h"
14 #if !defined (ACE_LACKS_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"
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
>
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.
43 /// Recv data from client.
46 /// Shutdown the <Svc_Handler>.
47 int close (u_long
= 0);
49 /// Set <this> to idle.
50 int idle (u_long flags
);