Chops Net IP
|
Convenience class that combines an executor work guard and a thread, invoking asynchronous operations as per the Asio documentation. More...
#include <worker.hpp>
Public Member Functions | |
asio::io_context & | get_io_context () |
Provide access to the io_context . | |
void | start () |
Start the thread that invokes the underlying asynchronous operations. | |
void | stop () |
Shutdown the executor and join the thread, abandoning any outstanding operations or handlers. | |
void | reset () |
Reset the internal work guard and join the thread, waiting for outstanding operations or handlers to complete. | |
Convenience class that combines an executor work guard and a thread, invoking asynchronous operations as per the Asio documentation.
net_ip
library, but is provided for convenience in many use cases.
|
inline |
Provide access to the io_context
.
asio::io_context
.