Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Cancel all asynchronous operations. This function has terminal effects.
void cancel();
All outstanding operations will complete with boost::asio::error::operation_aborted.
This function has terminal effects and will close the Client. The Client
cannot be used before calling async_run again.