Lines Matching defs:hostent
294 struct hostent *hostent;
297 hostent = gethostbyaddr ((char *)hostAddr.data, hostAddr.length, addr->sa_family);
298 if (hostent)
301 host = (char *)hostent->h_name;
595 struct hostent *hostent;
597 hostent = gethostbyname (name);
598 if (!hostent)
600 if (hostent->h_addrtype != AF_INET || hostent->h_length != 4)
602 in_addr.sin_family = hostent->h_addrtype;
603 memcpy(&in_addr.sin_addr, hostent->h_addr, 4);