Searched refs:hp (Results 1 - 4 of 4) sorted by relevance
/system/core/libcutils/ |
H A D | socket_network_client.c | 41 struct hostent *hp; local 46 hp = gethostbyname(host); 47 if(hp == 0) return -1; 50 addr.sin_family = hp->h_addrtype; 52 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length); 54 s = socket(hp->h_addrtype, type, 0);
|
/system/netd/ |
H A D | DnsProxyListener.cpp | 238 struct hostent* hp; local 241 hp = gethostbyaddr((char*)mAddress, mAddressLen, mAddressFamily); 244 ALOGD("GetHostByAddrHandler::run gethostbyaddr errno: %s hp->h_name = %s, name_len = %d\n", 245 hp ? "success" : strerror(errno), 246 (hp && hp->h_name) ? hp->h_name: "null", 247 (hp && hp->h_name) ? strlen(hp [all...] |
/system/core/adb/ |
H A D | services.c | 62 struct hostent *hp; local 66 hp = gethostbyname(hostname); 68 if(hp == 0) { 71 writex(fd, hp->h_addr, 4);
|
H A D | sysdeps_win32.c | 665 struct hostent *hp; local 675 hp = gethostbyname(host); 676 if(hp == 0) { 682 addr.sin_family = hp->h_addrtype; 684 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length); 686 s = socket(hp->h_addrtype, type, 0);
|
Completed in 913 milliseconds