libiqxmlrpc  0.12.4
 All Classes Namespaces Files Functions Typedefs Enumerations
reactor_poll_impl.h
1 // Libiqxmlrpc - an object-oriented XML-RPC solution.
2 // Copyright (C) 2011 Anton Dedov
3 
4 #ifndef _iqxmlrpc_reactor_poll_impl_h_
5 #define _iqxmlrpc_reactor_poll_impl_h_
6 
7 #ifdef HAVE_POLL
8 #include "reactor.h"
9 
10 #include <boost/utility.hpp>
11 
12 namespace iqnet
13 {
14 
16 class LIBIQXMLRPC_API Reactor_poll_impl: boost::noncopyable {
17  struct Impl;
18  Impl* impl;
19 
20 public:
21  Reactor_poll_impl();
22  virtual ~Reactor_poll_impl();
23 
24  void reset(const Reactor_base::HandlerStateList&);
25  bool poll(Reactor_base::HandlerStateList& out, Reactor_base::Timeout);
26 };
27 
28 } // namespace iqnet
29 
30 #endif // HAVE_POLL
31 #endif