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
| 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 | /** |
no test coverage detected