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

This is the documentation for a snapshot of the develop branch, built from commit d4128b739e.
PrevUpHomeNext
basic_stream::cancel

Cancel all asynchronous operations associated with the socket.

Synopsis
void
cancel();
Description

This function causes all outstanding asynchronous connect, read, and write operations to finish immediately. Completion handlers for cancelled operations will receive the error net::error::operation_aborted. Completion handlers not yet invoked whose operations have completed, will receive the error corresponding to the result of the operation (which may indicate success).


PrevUpHomeNext