 |
Kea
1.5.0
|
Go to the documentation of this file.
7 #ifndef ASIOLINK_IO_SERVICE_H
8 #define ASIOLINK_IO_SERVICE_H 1
10 #include <boost/function.hpp>
14 #if BOOST_VERSION < 106600
18 typedef io_context io_service;
93 void post(
const boost::function<
void ()>& callback);
104 #endif // ASIOLINK_IO_SERVICE_H
void run()
Start the underlying event loop.
boost::asio::io_service & get_io_service()
Return the native io_service object used in this wrapper.
void run_one()
Run the underlying event loop for a single event.
The IOService class is a wrapper for the ASIO io_service class.
void poll()
Run the underlying event loop for a ready events.
Defines the logger used by the top-level component of kea-dhcp-ddns.
IOService()
The constructor.
~IOService()
The destructor.
void stop()
Stop the underlying event loop.
A wrapper interface for the ASIO library.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
void stopWork()
Removes IO service work object to let it finish running when all handlers have been invoked.
void post(const boost::function< void()> &callback)
Post a callback to the end of the queue.