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(i
| 1471 | * @endcode |
| 1472 | */ |
| 1473 | void shutdown(shutdown_type what) |
| 1474 | { |
| 1475 | boost::system::error_code ec; |
| 1476 | this->get_service().shutdown(this->get_implementation(), what, ec); |
| 1477 | boost::asio::detail::throw_error(ec, "shutdown"); |
| 1478 | } |
| 1479 | |
| 1480 | /// Disable sends or receives on the socket. |
| 1481 | /** |
no test coverage detected