MCPcopy Create free account
hub / github.com/boostorg/asio / bind

Function bind

include/boost/asio/basic_socket_acceptor.hpp:569–574  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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 /**

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
bindMethod · 0.45

Tested by

no test coverage detected