Construct an endpoint using a port number, specified in the host's byte order. The IP address will be the any address (i.e. INADDR_ANY or in6addr_any). This constructor would typically be used for accepting new connections.
basic_endpoint( const InternetProtocol & protocol, unsigned short port_num);
Construct an endpoint using a port number and an IP address. This constructor may be used for accepting connections on a specific interface or for making a connection to a remote endpoint.
basic_endpoint( const boost::asio::ip::address & addr, unsigned short port_num);
basic_endpoint( const basic_endpoint & other);