13 if (addr.
address.sa_family == AF_INET6)
15 ostrm <<
"V6 " <<
DnsUtil::inet_ntop(addr.v6Address.sin6_addr) <<
" port=" << ntohs(addr.v6Address.sin6_port);
19 if (addr.
address.sa_family == AF_INET)
#define resip_assert(x)
This file needs to work for both C and C++ code.
static Data inet_ntop(const struct in_addr &addr)
Converts from the network format to presentation format.
dcm! – add UnusedChecking(_enum) below;
EncodeStream & operator<<(EncodeStream &strm, const BaseException &e)
Represents an IP-address and port (V4 or V6).