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
static Endpoint ip6Any(unsigned short port)
Creates the IPv6 any-address for port.
~Endpoint()
Destroys the endpoint.
std::string toString() const
Returns the endpoint as a string.
static Endpoint ip4Any(unsigned short port)
Creates the IPv4 any-address for port.
Endpoint(const char *host, unsigned short port)
Creates an endpoint for host and port.
Endpoint & operator=(const Endpoint &src)
Assigns the endpoint.
static Endpoint ip4Broadcast(unsigned short port)
Creates the IPv4 broadcast address for port.
Endpoint(const std::string &host, unsigned short port)
Creates an endpoint for host and port.
static Endpoint ip4Loopback(unsigned short port)
Creates the IPv4 loopback address for port.
void clear()
Clears the endpoint.
Endpoint()
Creates an empty endpoint.
Endpoint(const Endpoint &src)
Copies the endpoint.
static Endpoint ip6Loopback(unsigned short port)
Creates the IPv6 loopback address for port.
TCP and UDP network sockets.
Definition Client.h:45
Core module.
Definition Allocator.h:33