Searched defs:hp (Results 1 - 3 of 3) sorted by relevance

/system/core/libcutils/
H A Dsocket_network_client.c46 struct hostent *hp; local
58 hp = gethostbyname(host);
59 if (hp == 0) return -1;
62 addr.sin_family = hp->h_addrtype;
64 memcpy(&addr.sin_addr, hp->h_addr, hp->h_length);
66 s = socket(hp->h_addrtype, type, 0);
/system/netd/server/
H A DDnsProxyListener.cpp95 static bool sendhostent(SocketClient *c, struct hostent *hp) { argument
98 if (hp->h_name != NULL) {
99 success &= sendLenAndData(c, strlen(hp->h_name)+1, hp->h_name);
104 for (i=0; hp->h_aliases[i] != NULL; i++) {
105 success &= sendLenAndData(c, strlen(hp->h_aliases[i])+1, hp->h_aliases[i]);
109 uint32_t buf = htonl(hp->h_addrtype);
112 buf = htonl(hp->h_length);
115 for (i=0; hp
311 struct hostent* hp; local
427 struct hostent* hp; local
[all...]
/system/core/adb/
H A Dsysdeps_win32.c665 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 387 milliseconds