Bind the acceptor to the given local endpoint. * This function binds the socket acceptor to the specified endpoint on the * local machine. * * @param endpoint An endpoint on the local machine to which the socket * acceptor will be bound. * * @throws boost::system::system_error Thrown on failure. * * @par Example * @code * boost::asio::ip::tcp::acceptor acceptor(my_con
| 567 | * @endcode |
| 568 | */ |
| 569 | void bind(const endpoint_type& endpoint) |
| 570 | { |
| 571 | boost::system::error_code ec; |
| 572 | impl_.get_service().bind(impl_.get_implementation(), endpoint, ec); |
| 573 | boost::asio::detail::throw_error(ec, "bind"); |
| 574 | } |
| 575 | |
| 576 | /// Bind the acceptor to the given local endpoint. |
| 577 | /** |
nothing calls this directly
no test coverage detected