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. */
| 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 | /** |
nothing calls this directly
no test coverage detected