Kea 2.7.6
|
Public Member Functions | |
IOServiceImpl () | |
The constructor. | |
~IOServiceImpl ()=default | |
The destructor. | |
boost::asio::io_service & | getInternalIOService () |
Return the native io_service object used in this wrapper. | |
size_t | poll () |
Run the underlying event loop for a ready events. | |
size_t | pollOne () |
Run the underlying event loop for a ready events. | |
void | post (const std::function< void()> &callback) |
Post a callback on the IO service. | |
void | restart () |
Restarts the IOService in preparation for a subsequent run() invocation. | |
void | run () |
Start the underlying event loop. | |
size_t | runOne () |
Run the underlying event loop for a single event. | |
void | stop () |
Stop the underlying event loop. | |
bool | stopped () const |
Indicates if the IOService has been stopped. | |
void | stopWork () |
Removes IO service work object to let it finish running when all handlers have been invoked. | |
Definition at line 20 of file io_service.cc.
|
inline |
The constructor.
Definition at line 31 of file io_service.cc.
|
default |
The destructor.
|
inline |
Return the native io_service
object used in this wrapper.
This is a short term work around to support other Kea modules that share the same io_service
with the authoritative server. It will eventually be removed once the wrapper interface is generalized.
Definition at line 110 of file io_service.cc.
|
inline |
Run the underlying event loop for a ready events.
This method executes handlers for all ready events and returns. It will return immediately if there are no ready events.
Definition at line 65 of file io_service.cc.
|
inline |
Run the underlying event loop for a ready events.
This method executes handlers for all ready events and returns. It will return immediately if there are no ready events.
Definition at line 75 of file io_service.cc.
|
inline |
Post a callback on the IO service.
callback | The callback to be run on the IO service. |
Definition at line 117 of file io_service.cc.
|
inline |
Restarts the IOService in preparation for a subsequent run() invocation.
Definition at line 94 of file io_service.cc.
|
inline |
Start the underlying event loop.
This method does not return control to the caller until the stop() or stopWork() method is called via some handler.
Definition at line 44 of file io_service.cc.
|
inline |
Run the underlying event loop for a single event.
This method return control to the caller as soon as the first handler has completed. (If no handlers are ready when it is run, it will block until one is.)
Definition at line 55 of file io_service.cc.
|
inline |
Stop the underlying event loop.
This will return the control to the caller of the run() method.
Definition at line 82 of file io_service.cc.
|
inline |
Indicates if the IOService has been stopped.
Definition at line 89 of file io_service.cc.
|
inline |
Removes IO service work object to let it finish running when all handlers have been invoked.
Definition at line 100 of file io_service.cc.