EMANE
1.2.1
|
#include <inetaddr.h>
Public Member Functions | |
INETAddr () | |
INETAddr (const std::string &sEndPoint) | |
INETAddr (const std::string &sAddr, std::uint16_t u16Port) | |
INETAddr (const sockaddr_in &sockaddr) | |
INETAddr (const sockaddr_in6 &sockaddr) | |
INETAddr (const INETAddr &address) | |
INETAddr (INETAddr &&address) | |
~INETAddr () | |
INETAddr & | operator= (const INETAddr &address) |
INETAddr & | operator= (INETAddr &&address) |
void | set (const std::string &sAddress, std::uint16_t u16Port) |
void | set (const std::string &sEndPoint) |
bool | isIPv6 () const |
bool | isIPv4 () const |
bool | isAny () const |
bool | isMulticast () const |
int | getFamily () const |
sockaddr * | getSockAddr () const |
socklen_t | getAddrLength () const |
std::string | str (bool bWithPort=true) const |
std::uint16_t | getPort () const |
Definition at line 43 of file inetaddr.h.
EMANE::INETAddr::INETAddr | ( | ) |
Definition at line 334 of file inetaddr.cc.
EMANE::INETAddr::INETAddr | ( | const std::string & | sEndPoint | ) |
Definition at line 337 of file inetaddr.cc.
EMANE::INETAddr::INETAddr | ( | const std::string & | sAddr, |
std::uint16_t | u16Port | ||
) |
Definition at line 340 of file inetaddr.cc.
EMANE::INETAddr::INETAddr | ( | const sockaddr_in & | sockaddr | ) |
Definition at line 328 of file inetaddr.cc.
EMANE::INETAddr::INETAddr | ( | const sockaddr_in6 & | sockaddr | ) |
Definition at line 331 of file inetaddr.cc.
EMANE::INETAddr::INETAddr | ( | const INETAddr & | address | ) |
Creates an INETAddr instance by copying another instance
Definition at line 344 of file inetaddr.cc.
EMANE::INETAddr::INETAddr | ( | INETAddr && | address | ) |
Creates an INETAddr instance by moving another instance
Definition at line 355 of file inetaddr.cc.
EMANE::INETAddr::~INETAddr | ( | ) |
Definition at line 366 of file inetaddr.cc.
socklen_t EMANE::INETAddr::getAddrLength | ( | ) | const |
Definition at line 404 of file inetaddr.cc.
int EMANE::INETAddr::getFamily | ( | ) | const |
Definition at line 394 of file inetaddr.cc.
std::uint16_t EMANE::INETAddr::getPort | ( | ) | const |
Definition at line 414 of file inetaddr.cc.
sockaddr * EMANE::INETAddr::getSockAddr | ( | ) | const |
Definition at line 399 of file inetaddr.cc.
bool EMANE::INETAddr::isAny | ( | ) | const |
Definition at line 389 of file inetaddr.cc.
bool EMANE::INETAddr::isIPv4 | ( | ) | const |
Definition at line 384 of file inetaddr.cc.
bool EMANE::INETAddr::isIPv6 | ( | ) | const |
Definition at line 379 of file inetaddr.cc.
bool EMANE::INETAddr::isMulticast | ( | ) | const |
EMANE::INETAddr & EMANE::INETAddr::operator= | ( | const INETAddr & | address | ) |
Sets an INETAddr instance to a copy of another instance
Definition at line 349 of file inetaddr.cc.
EMANE::INETAddr & EMANE::INETAddr::operator= | ( | INETAddr && | address | ) |
Sets and INETAddr instance by moving another instance
Definition at line 360 of file inetaddr.cc.
void EMANE::INETAddr::set | ( | const std::string & | sAddress, |
std::uint16_t | u16Port | ||
) |
Definition at line 368 of file inetaddr.cc.
void EMANE::INETAddr::set | ( | const std::string & | sEndPoint | ) |
Definition at line 374 of file inetaddr.cc.
std::string EMANE::INETAddr::str | ( | bool | bWithPort = true | ) | const |
Definition at line 409 of file inetaddr.cc.