Home
last modified time | relevance | path

Searched refs:hp (Results 1 – 3 of 3) sorted by relevance

/system/netd/server/
DDnsProxyListener.cpp95 static bool sendhostent(SocketClient *c, struct hostent *hp) { in sendhostent() argument
98 if (hp->h_name != NULL) { in sendhostent()
99 success &= sendLenAndData(c, strlen(hp->h_name)+1, hp->h_name); in sendhostent()
104 for (i=0; hp->h_aliases[i] != NULL; i++) { in sendhostent()
105 success &= sendLenAndData(c, strlen(hp->h_aliases[i])+1, hp->h_aliases[i]); in sendhostent()
109 uint32_t buf = htonl(hp->h_addrtype); in sendhostent()
112 buf = htonl(hp->h_length); in sendhostent()
115 for (i=0; hp->h_addr_list[i] != NULL; i++) { in sendhostent()
116 success &= sendLenAndData(c, 16, hp->h_addr_list[i]); in sendhostent()
311 struct hostent* hp; in run() local
[all …]
/system/core/libcutils/
Dsocket_network_client.c46 struct hostent *hp; in socket_network_client_timeout() local
58 hp = gethostbyname(host); in socket_network_client_timeout()
59 if (hp == 0) return -1; in socket_network_client_timeout()
62 addr.sin_family = hp->h_addrtype; in socket_network_client_timeout()
64 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length); in socket_network_client_timeout()
66 s = socket(hp->h_addrtype, type, 0); in socket_network_client_timeout()
/system/core/adb/
Dsysdeps_win32.c665 struct hostent *hp; in socket_network_client() local
675 hp = gethostbyname(host); in socket_network_client()
676 if(hp == 0) { in socket_network_client()
682 addr.sin_family = hp->h_addrtype; in socket_network_client()
684 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length); in socket_network_client()
686 s = socket(hp->h_addrtype, type, 0); in socket_network_client()