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

Function shutdown

include/boost/asio/basic_socket.hpp:1679–1684  ·  view source on GitHub ↗

Disable sends or receives on the socket. * This function is used to disable send operations, receive operations, or * both. * * @param what Determines what types of operation will no longer be allowed. * * @throws boost::system::system_error Thrown on failure. * * @par Example * Shutting down the send side of the socket: * @code * boost::asio::ip::tcp::socket socket(m

Source from the content-addressed store, hash-verified

1677 * @endcode
1678 */
1679 void shutdown(shutdown_type what)
1680 {
1681 boost::system::error_code ec;
1682 impl_.get_service().shutdown(impl_.get_implementation(), what, ec);
1683 boost::asio::detail::throw_error(ec, "shutdown");
1684 }
1685
1686 /// Disable sends or receives on the socket.
1687 /**

Callers 5

~priority_schedulerMethod · 0.85
shutdownMethod · 0.85
shutdownMethod · 0.85
shutdownMethod · 0.85
shutdownMethod · 0.85

Calls 2

throw_errorFunction · 0.85
shutdownMethod · 0.45

Tested by

no test coverage detected