Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
boost::mqtt5::mqtt_client::cancel

Cancel all asynchronous operations. This function has terminal effects.

Synopsis
void
cancel();
Description

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.

Attention

This function has terminal effects and will close the Client. The Client cannot be used for communication before calling async_run again.


PrevUpHomeNext