MCPcopy Create free account
hub / github.com/boostorg/asio / cancel

Function cancel

include/boost/asio/basic_socket_acceptor.hpp:767–772  ·  view source on GitHub ↗

Cancel all asynchronous operations associated with the acceptor. * This function causes all outstanding asynchronous connect, send and receive * operations to finish immediately, and the handlers for cancelled operations * will be passed the boost::asio::error::operation_aborted error. * * @throws boost::system::system_error Thrown on failure. */

Source from the content-addressed store, hash-verified

765 * @throws boost::system::system_error Thrown on failure.
766 */
767 void cancel()
768 {
769 boost::system::error_code ec;
770 impl_.get_service().cancel(impl_.get_implementation(), ec);
771 boost::asio::detail::throw_error(ec, "cancel");
772 }
773
774 /// Cancel all asynchronous operations associated with the acceptor.
775 /**

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
cancelMethod · 0.45

Tested by

no test coverage detected