Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Click here to view the latest version of this page.
PrevUpHomeNext

ip::basic_endpoint::basic_endpoint

Default constructor.

basic_endpoint();

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);

Copy constructor.

basic_endpoint(
    const basic_endpoint & other);

PrevUpHomeNext