![]() |
Home | Libraries | People | FAQ | More |
Cancel all asynchronous operations. This function has terminal effects.
void cancel();
The Client immediately enters the stopped state. All operations still pending
on the current run will complete with boost::asio::error::operation_aborted.
Communication operations initiated after this call also complete with
boost::asio::error::operation_aborted until async_run is called again.
This function has terminal effects and will close the Client. The Client
cannot be used for communication before calling async_run again.