Open Lighting Architecture
Latest Git
|
a Generic Socket Address
Wraps a struct sockaddr.
Public Member Functions | |
GenericSocketAddress (const struct sockaddr &addr) | |
GenericSocketAddress (const GenericSocketAddress &other) | |
bool | IsValid () const |
uint16_t | Family () const |
GenericSocketAddress & | operator= (const GenericSocketAddress &other) |
bool | ToSockAddr (struct sockaddr *addr, unsigned int size) const |
std::string | ToString () const |
IPV4SocketAddress | V4Addr () const |
IPV4SocketAddress ola::network::GenericSocketAddress::V4Addr | ( | ) | const |
Convert the sockaddr to a sockaddr_in. The caller should check that Family() is AF_INET before calling this.