2 * Sample code from The ACE Programmer's Guide,
3 * copyright 2003 Addison-Wesley. All Rights Reserved.
6 #ifndef __REQUEST_HANDLER_H_
7 #define __REQUEST_HANDLER_H_
9 #include "ace/Svc_Handler.h"
10 #include "ace/SOCK_Stream.h"
12 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
13 class ACE_Thread_Manager
;
14 ACE_END_VERSIONED_NAMESPACE_DECL
16 class Request_Handler
: public ACE_Svc_Handler
<ACE_SOCK_STREAM
, ACE_MT_SYNCH
>
19 // This class is the Svc_Handler used by <Acceptor>.
21 Request_Handler (ACE_Thread_Manager
*tm
= 0);
22 // The default constructor makes sure the right reactor is used.
25 virtual int handle_input (ACE_HANDLE fd
= ACE_INVALID_HANDLE
);
26 virtual int handle_close (ACE_HANDLE fd
, ACE_Reactor_Mask
= 0);
32 #endif /* __REQUEST_HANDLER_H_ */