• Home
  • Raw
  • Download

Lines Matching refs:ip_

68   ip_ = IPAddress();  in Clear()
74 return hostname_.empty() && IPIsUnspec(ip_) && 0 == port_; in IsNil()
78 return (!IPIsAny(ip_)) && (0 != port_); in IsComplete()
83 ip_ = addr.ip_; in operator =()
93 ip_ = IPAddress(ip_as_host_order_integer); in SetIP()
100 ip_ = ip; in SetIP()
106 literal_ = IPFromString(hostname, &ip_); in SetIP()
108 ip_ = IPAddress(); in SetIP()
114 ip_ = IPAddress(ip_as_host_order_integer); in SetResolvedIP()
119 ip_ = ip; in SetResolvedIP()
128 return ip_.v4AddressAsHostOrderInteger(); in ip()
132 return ip_; in ipaddr()
144 if (ip_.family() == AF_INET6) { in HostAsURIString()
145 return "[" + ip_.ToString() + "]"; in HostAsURIString()
147 return ip_.ToString(); in HostAsURIString()
156 if (ip_.family() == AF_INET6) { in HostAsSensitiveURIString()
157 return "[" + ip_.ToSensitiveString() + "]"; in HostAsSensitiveURIString()
159 return ip_.ToSensitiveString(); in HostAsSensitiveURIString()
204 return IPIsAny(ip_); in IsAnyIP()
208 return IPIsLoopback(ip_) || in IsLoopbackIP()
209 (IPIsAny(ip_) && 0 == strcmp(hostname_.c_str(), "localhost")); in IsLoopbackIP()
213 return IPIsPrivate(ip_); in IsPrivateIP()
217 return IPIsUnspec(ip_) && !literal_ && !hostname_.empty(); in IsUnresolvedIP()
225 if (ip_ != addr.ip_) in operator <()
226 return ip_ < addr.ip_; in operator <()
230 if ((IPIsAny(ip_) || IPIsUnspec(ip_)) && hostname_ != addr.hostname_) in operator <()
237 return (ip_ == addr.ip_) && in EqualIPs()
238 ((!IPIsAny(ip_) && !IPIsUnspec(ip_)) || (hostname_ == addr.hostname_)); in EqualIPs()
247 h ^= HashIP(ip_); in Hash()
254 if (ip_.family() != AF_INET) { in ToSockAddr()
260 if (IPIsAny(ip_)) { in ToSockAddr()
263 saddr->sin_addr = ip_.ipv4_address(); in ToSockAddr()
298 return ToSockAddrStorageHelper(addr, ip_.AsIPv6Address(), port_, scope_id_); in ToDualStackSockAddrStorage()
302 return ToSockAddrStorageHelper(addr, ip_, port_, scope_id_); in ToSockAddrStorage()