33 #ifndef EMANEINETADDR_HEADER_ 34 #define EMANEINETADDR_HEADER_ 39 #include <netinet/in.h> 48 INETAddr(
const std::string & sEndPoint);
51 std::uint16_t u16Port);
53 INETAddr(
const sockaddr_in & sockaddr);
55 INETAddr(
const sockaddr_in6 & sockaddr);
81 void set(
const std::string & sAddress, std::uint16_t u16Port);
83 void set(
const std::string & sEndPoint);
99 std::string
str(
bool bWithPort =
true)
const;
104 class Implementation;
105 std::unique_ptr<Implementation> pImpl_;
109 #endif // EMANEINETADDR_HEADER_
socklen_t getAddrLength() const
std::uint16_t getPort() const
sockaddr * getSockAddr() const
std::string str(bool bWithPort=true) const
INETAddr & operator=(const INETAddr &address)