3 //=============================================================================
7 * Define class needed for generating templates. IBM C++ requires this to
8 * be in its own file for auto template instantiation.
10 * @author Irfan Pyarali <irfan@cs.wustl.edu>
12 //=============================================================================
15 #include "ace/Service_Config.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "ace/Null_Condition.h"
22 #include "ace/Svc_Handler.h"
23 #include "ace/SOCK_Stream.h"
28 * @brief This class is the product created by both <ACE_Connector>
29 * and <ACE_Acceptor> objects.
31 * This class gets its own header file to work around AIX C++
32 * compiler "features" related to template instantiation... It is
33 * only used by Conn_Test.cpp.
35 class Svc_Handler
: public ACE_Svc_Handler
<ACE_SOCK_STREAM
, ACE_NULL_SYNCH
>
38 /// Do-nothing constructor.
39 Svc_Handler (ACE_Thread_Manager
* = 0);
41 /// Initialization hook.
42 virtual int open (void *);
44 /// Prepare for recycling.
45 virtual int recycle (void * = 0);
47 /// Send data to server.
48 void send_data (void);
50 /// Recv data from client.
51 void recv_data (void);
53 /// Shutdown the <Svc_Handler>.
54 int close (u_long
= 0);
56 /// Set <this> to idle.
57 int idle (u_long flags
);