...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
typedef basic_endpoint< udp > endpoint;
Name |
Description |
---|---|
The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer. |
|
The protocol type associated with the endpoint. |
Name |
Description |
---|---|
Get the IP address associated with the endpoint. Set the IP address associated with the endpoint. |
|
Default constructor. 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. 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. Copy constructor. |
|
Get the capacity of the endpoint in the native type. |
|
Get the underlying endpoint in the native type. |
|
Assign from another endpoint. |
|
Get the port associated with the endpoint. The port number is always in the host's byte order. Set the port associated with the endpoint. The port number is always in the host's byte order. |
|
The protocol associated with the endpoint. |
|
Set the underlying size of the endpoint in the native type. |
|
Get the underlying size of the endpoint in the native type. |
Name |
Description |
---|---|
Compare two endpoints for inequality. |
|
Compare endpoints for ordering. |
|
Compare two endpoints for equality. |
Name |
Description |
---|---|
Output an endpoint as a string. |
The ip::basic_endpoint class template describes an endpoint that may be associated with a particular socket.
Distinct objects: Safe.
Shared objects: Unsafe.