MCPcopy Create free account
hub / github.com/alibaba/async_simple / shutdown

Function shutdown

demo_example/asio/asio/basic_socket.hpp:1671–1676  ·  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 asio::system_error Thrown on failure. * * @par Example * Shutting down the send side of the socket: * @code * asio::ip::tcp::socket socket(my_context); *

Source from the content-addressed store, hash-verified

1669 * @endcode
1670 */
1671 void shutdown(shutdown_type what)
1672 {
1673 asio::error_code ec;
1674 impl_.get_service().shutdown(impl_.get_implementation(), what, ec);
1675 asio::detail::throw_error(ec, "shutdown");
1676 }
1677
1678 /// Disable sends or receives on the socket.
1679 /**

Callers 4

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