#include <Pt/Net/Endpoint.h>
Represents a Network Host. More...
Public Member Functions | |
| Endpoint () | |
| Default contructor. | |
| Endpoint (const std::string &host, unsigned short port) | |
| Contruct from hostname and port number. | |
| Endpoint (const char *host, unsigned short port) | |
| Contruct from hostname and port number. | |
| Endpoint (const Endpoint &src) | |
| Copy contructor. | |
| ~Endpoint () | |
| Destructor. | |
| void | clear () |
| Clears the endpoint. | |
| Endpoint & | operator= (const Endpoint &src) |
| Assignment operator. | |
| std::string | toString () const |
| Returns the endpoint a s a string. | |
Static Public Member Functions | |
| static Endpoint | ip4Any (unsigned short port) |
| Constructs the special IP4 any address. | |
| static Endpoint | ip4Broadcast (unsigned short port) |
| Constructs the special IP4 broadcast address. | |
| static Endpoint | ip4Loopback (unsigned short port) |
| Constructs the special IP4 loopback address. | |
| static Endpoint | ip6Any (unsigned short port) |
| Constructs the special IP6 any address. | |
| static Endpoint | ip6Loopback (unsigned short port) |
| Constructs the special IP6 loopback address. | |
Endpoints are constructed from a hostname and service name such as an IP port number.