IPv4 and IPv6 address presentation. More...
#include <IPAddress.h>
Public Member Functions | |
IPAddress () | |
Default constructor. | |
IPAddress (const sockaddr &address) | |
Constructor. More... | |
IPAddress (const IPAddress &other) | |
Copy constructor. More... | |
IPAddress & | operator= (const IPAddress &other) |
Assignment. More... | |
const sockaddr * | address () const |
Get address data. | |
size_t | length () const |
const String & | toString () const |
Static Public Member Functions | |
static size_t | addressLength (const sockaddr &address) |
IPv4 and IPv6 address presentation.
|
explicit |
Constructor.
address | const sockaddr&, IPv4 address |
sptk::IPAddress::IPAddress | ( | const IPAddress & | other | ) |
Copy constructor.
other | const IPAddress&, Other address |
|
inlinestatic |
Return length of actual address
address | const sockaddr&, Address data |
|
inline |
Return length of address
Assignment.
other | const IPAddress&, Other address |
|
inline |
Return IP address as a string