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

Function bind

include/boost/asio/basic_socket.hpp:790–795  ·  view source on GitHub ↗

Bind the socket to the given local endpoint. * This function binds the socket to the specified endpoint on the local * machine. * * @param endpoint An endpoint on the local machine to which the socket will * be bound. * * @throws boost::system::system_error Thrown on failure. * * @par Example * @code * boost::asio::ip::tcp::socket socket(my_context); * socket.open(

Source from the content-addressed store, hash-verified

788 * @endcode
789 */
790 void bind(const endpoint_type& endpoint)
791 {
792 boost::system::error_code ec;
793 impl_.get_service().bind(impl_.get_implementation(), endpoint, ec);
794 boost::asio::detail::throw_error(ec, "bind");
795 }
796
797 /// Bind the socket to the given local endpoint.
798 /**

Callers 15

async_write_messageFunction · 0.50
async_write_messageFunction · 0.50
async_write_messageFunction · 0.50
async_write_messageFunction · 0.50
clientMethod · 0.50
handle_connectMethod · 0.50
serverMethod · 0.50
handle_acceptMethod · 0.50
async_writeMethod · 0.50
async_readMethod · 0.50
handle_read_headerMethod · 0.50
start_receiveMethod · 0.50

Calls 2

throw_errorFunction · 0.85
bindMethod · 0.45