Searched refs:hp (Results 1 – 3 of 3) sorted by relevance
/system/core/libcutils/ |
D | socket_network_client.c | 41 struct hostent *hp; in socket_network_client() local 46 hp = gethostbyname(host); in socket_network_client() 47 if(hp == 0) return -1; in socket_network_client() 50 addr.sin_family = hp->h_addrtype; in socket_network_client() 52 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length); in socket_network_client() 54 s = socket(hp->h_addrtype, type, 0); in socket_network_client()
|
/system/core/adb/ |
D | services.c | 62 struct hostent *hp; in dns_service() local 66 hp = gethostbyname(hostname); in dns_service() 67 if(hp == 0) { in dns_service() 70 writex(fd, hp->h_addr, 4); in dns_service()
|
D | sysdeps_win32.c | 651 struct hostent *hp; in socket_network_client() local 661 hp = gethostbyname(host); in socket_network_client() 662 if(hp == 0) { in socket_network_client() 668 addr.sin_family = hp->h_addrtype; in socket_network_client() 670 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length); in socket_network_client() 672 s = socket(hp->h_addrtype, type, 0); in socket_network_client()
|