29 #ifndef PT_NET_ENDPOINT_H
30 #define PT_NET_ENDPOINT_H
32 #include <Pt/Net/Api.h>
55 Endpoint(
const std::string& host,
unsigned short port);
59 Endpoint(
const char* host,
unsigned short port);
102 explicit Endpoint(EndpointImpl* impl);
109 const EndpointImpl* impl()
const
120 #endif // PT_NET_ENDPOINT_H
Core module.
Definition: Allocator.h:33
std::string toString() const
Returns the endpoint a s a string.
static Endpoint ip6Any(unsigned short port)
Constructs the special IP6 any address.
void clear()
Clears the endpoint.
Endpoint(const Endpoint &src)
Copy contructor.
Endpoint(const std::string &host, unsigned short port)
Contruct from hostname and port number.
static Endpoint ip4Broadcast(unsigned short port)
Constructs the special IP4 broadcast address.
Represents a Network Host.
Definition: Endpoint.h:47
Endpoint & operator=(const Endpoint &src)
Assignment operator.
Endpoint()
Default contructor.
static Endpoint ip6Loopback(unsigned short port)
Constructs the special IP6 loopback address.
Endpoint(const char *host, unsigned short port)
Contruct from hostname and port number.
static Endpoint ip4Any(unsigned short port)
Constructs the special IP4 any address.
static Endpoint ip4Loopback(unsigned short port)
Constructs the special IP4 loopback address.