Home
last modified time | relevance | path

Searched refs:IPSockAddr (Results 1 – 3 of 3) sorted by relevance

/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h122 class IPSockAddr; variable
173 friend class IPSockAddr; variable
246 class IPSockAddr {
250 static IPSockAddr toIPSockAddr(const std::string& repr, in_port_t port) { in toIPSockAddr()
251 return IPSockAddr(IPAddress::forString(repr), port); in toIPSockAddr()
253 static IPSockAddr toIPSockAddr(const sockaddr& sa) { in toIPSockAddr()
256 return IPSockAddr(*reinterpret_cast<const sockaddr_in*>(&sa)); in toIPSockAddr()
258 return IPSockAddr(*reinterpret_cast<const sockaddr_in6*>(&sa)); in toIPSockAddr()
260 return IPSockAddr(); in toIPSockAddr()
263 static IPSockAddr toIPSockAddr(const sockaddr_storage& ss) { in toIPSockAddr()
[all …]
/system/netd/libnetdutils/
DInternetAddressesTest.cpp493 const std::vector<OperatorExpectation<IPSockAddr>> kExpectations{ in TEST()
494 {EQ, IPSockAddr(), IPSockAddr()}, in TEST()
495 {EQ, IPSockAddr(IPAddress(IPV4_ANY)), IPSockAddr(IPAddress(IPV4_ANY), 0)}, in TEST()
496 {EQ, IPSockAddr(IPAddress(IPV6_ANY)), IPSockAddr(IPAddress(IPV6_ANY), 0)}, in TEST()
497 {EQ, IPSockAddr(IPAddress(FE80_1), 80), IPSockAddr(IPAddress(FE80_1), 80)}, in TEST()
498 {EQ, IPSockAddr(IPAddress(FE80_1, 17)), IPSockAddr(IPAddress(FE80_1, 17), 0)}, in TEST()
499 {LT, IPSockAddr(IPAddress(IPV4_ANY), 0), IPSockAddr(IPAddress(IPV4_ANY), 1)}, in TEST()
500 {LT, IPSockAddr(IPAddress(IPV4_ANY), 53), IPSockAddr(IPAddress(IPV4_ANY), 123)}, in TEST()
501 {LT, IPSockAddr(IPAddress(IPV4_ONES), 123), IPSockAddr(IPAddress(IPV6_ANY), 53)}, in TEST()
502 {LT, IPSockAddr(IPAddress(IPV6_ANY), 0), IPSockAddr(IPAddress(IPV6_ANY), 1)}, in TEST()
[all …]
DInternetAddresses.cpp154 std::string IPSockAddr::toString() const noexcept { in toString()