29 #ifndef PT_NET_ENDPOINT_H
30 #define PT_NET_ENDPOINT_H
32 #include <Pt/Net/Api.h>
85 Endpoint(
const std::string& host,
unsigned short port);
89 Endpoint(
const char* host,
unsigned short port);
132 explicit Endpoint(EndpointImpl* impl);
139 const EndpointImpl* impl()
const
150 #endif // PT_NET_ENDPOINT_H
Core module.
Definition: Allocator.h:33
std::string toString() const
Returns the endpoint as a string.
static Endpoint ip6Any(unsigned short port)
Creates the IPv6 any-address for port.
void clear()
Clears the endpoint.
Endpoint(const Endpoint &src)
Copies the endpoint.
Endpoint(const std::string &host, unsigned short port)
Creates an endpoint for host and port.
static Endpoint ip4Broadcast(unsigned short port)
Creates the IPv4 broadcast address for port.
Host and service address.
Definition: Endpoint.h:77
Endpoint & operator=(const Endpoint &src)
Assigns the endpoint.
Endpoint()
Creates an empty endpoint.
static Endpoint ip6Loopback(unsigned short port)
Creates the IPv6 loopback address for port.
Endpoint(const char *host, unsigned short port)
Creates an endpoint for host and port.
static Endpoint ip4Any(unsigned short port)
Creates the IPv4 any-address for port.
static Endpoint ip4Loopback(unsigned short port)
Creates the IPv4 loopback address for port.
~Endpoint()
Destroys the endpoint.