Searched refs:pHost (Results 1 – 2 of 2) sorted by relevance
212 if (hostent* pHost = SafeGetHostByName(hostname_.c_str(), &errcode)) { in ResolveIP() local213 ip_ = NetworkToHost32(*reinterpret_cast<uint32*>(pHost->h_addr_list[0])); in ResolveIP()216 FreeHostEnt(pHost); in ResolveIP()345 if (hostent* pHost = SafeGetHostByName(hostname.c_str(), &errcode)) { in GetLocalIPs() local346 for (size_t i = 0; pHost->h_addr_list[i]; ++i) { in GetLocalIPs()348 NetworkToHost32(*reinterpret_cast<uint32 *>(pHost->h_addr_list[i])); in GetLocalIPs()351 FreeHostEnt(pHost); in GetLocalIPs()
662 hostent* pHost = reinterpret_cast<hostent*>(dns_->buffer); in OnDnsNotify() local663 uint32 net_ip = *reinterpret_cast<uint32*>(pHost->h_addr_list[0]); in OnDnsNotify()