Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / APG / ThreadPools / Request_Handler.h
blobef7a5508860eb86701f5448c52413101549f9bb7
1 /**
2 * Sample code from The ACE Programmer's Guide,
3 * copyright 2003 Addison-Wesley. All Rights Reserved.
4 */
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>
18 // = TITLE
19 // This class is the Svc_Handler used by <Acceptor>.
20 public:
21 Request_Handler (ACE_Thread_Manager *tm = 0);
22 // The default constructor makes sure the right reactor is used.
24 protected:
25 virtual int handle_input (ACE_HANDLE fd = ACE_INVALID_HANDLE);
26 virtual int handle_close (ACE_HANDLE fd, ACE_Reactor_Mask = 0);
28 private:
29 size_t nr_msgs_rcvd_;
32 #endif /* __REQUEST_HANDLER_H_ */