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

Function close

include/boost/asio/basic_socket_acceptor.hpp:661–666  ·  view source on GitHub ↗

Close the acceptor. * This function is used to close the acceptor. Any asynchronous accept * operations will be cancelled immediately. * * A subsequent call to open() is required before the acceptor can again be * used to again perform socket accept operations. * * @throws boost::system::system_error Thrown on failure. */

Source from the content-addressed store, hash-verified

659 * @throws boost::system::system_error Thrown on failure.
660 */
661 void close()
662 {
663 boost::system::error_code ec;
664 impl_.get_service().close(impl_.get_implementation(), ec);
665 boost::asio::detail::throw_error(ec, "close");
666 }
667
668 /// Close the acceptor.
669 /**

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected