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. */
| 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 | /** |
nothing calls this directly
no test coverage detected