Open Lighting Architecture
0.9.2
|
An IPv4 SocketAddress.
Wraps a sockaddr_in.
Public Member Functions | |
IPV4SocketAddress (const IPV4Address &host, uint16_t port) | |
IPV4SocketAddress (const IPV4SocketAddress &other) | |
IPV4SocketAddress & | operator= (const IPV4SocketAddress &other) |
bool | operator== (const IPV4SocketAddress &other) const |
bool | operator!= (const IPV4SocketAddress &other) const |
bool | operator< (const IPV4SocketAddress &other) const |
uint16_t | Family () const |
const IPV4Address & | Host () const |
void | Host (const IPV4Address &host) |
uint16_t | Port () const |
void | Port (uint16_t port) |
std::string | ToString () const |
bool | ToSockAddr (struct sockaddr *addr, unsigned int size) const |
Static Public Member Functions | |
static bool | FromString (const std::string &str, IPV4SocketAddress *socket_address) |
static IPV4SocketAddress | FromStringOrDie (const std::string &address) |
|
static |
Extract a IPV4SocketAddress from a string.
|
virtual |
Copy this IPV4SocketAddress into a sockaddr.
Implements ola::network::SocketAddress.