Searched refs:address_struct (Results 1 – 2 of 2) sorted by relevance
81 IPAddress::IPAddress(const sockaddr* address_struct, size_t size) in IPAddress() argument84 if (address_struct->sa_family == kFamilyIPv4 && size >= sizeof(sockaddr_in)) { in IPAddress()85 family_ = address_struct->sa_family; in IPAddress()86 auto sin = reinterpret_cast<const sockaddr_in*>(address_struct); in IPAddress()90 } else if (address_struct->sa_family == kFamilyIPv6 && in IPAddress()92 family_ = address_struct->sa_family; in IPAddress()93 auto sin6 = reinterpret_cast<const sockaddr_in6*>(address_struct); in IPAddress()255 bool IPAddress::IntoSockAddr(sockaddr* address_struct, size_t size) const { in IntoSockAddr() argument260 auto sin = reinterpret_cast<sockaddr_in*>(address_struct); in IntoSockAddr()263 auto sin6 = reinterpret_cast<sockaddr_in6*>(address_struct); in IntoSockAddr()[all …]
47 explicit IPAddress(const sockaddr* address_struct, size_t size);129 bool IntoSockAddr(sockaddr* address_struct, size_t size) const;