Searched defs:hints (Results 1 - 4 of 4) sorted by relevance

/system/extras/tests/bionic/libc/common/
H A Dtest_getaddrinfo.c2 * without a 'hints' argument
18 struct addrinfo hints; local
22 /* first, try without any hints */
31 /* now try with the hints */
32 memset(&hints, 0, sizeof(hints));
33 hints.ai_family = AF_UNSPEC;
34 hints.ai_socktype = SOCK_STREAM;
35 hints.ai_protocol = IPPROTO_TCP;
37 ret = getaddrinfo( SERVER_NAME, PORT_NUMBER, &hints,
[all...]
/system/netd/server/
H A DDnsProxyListener.cpp54 struct addrinfo* hints,
60 mHints(hints),
189 struct addrinfo* hints = NULL; local
201 hints = (struct addrinfo*) calloc(1, sizeof(struct addrinfo));
202 hints->ai_flags = ai_flags;
203 hints->ai_family = ai_family;
204 hints->ai_socktype = ai_socktype;
205 hints->ai_protocol = ai_protocol;
209 if ((hints->ai_flags & AI_ADDRCONFIG) &&
211 hints
51 GetAddrInfoHandler(SocketClient *c, char* host, char* service, struct addrinfo* hints, unsigned netId, uint32_t mark) argument
[all...]
H A DNetdConstants.cpp204 addrinfo hints = { local
207 int ret = getaddrinfo(addressString.c_str(), NULL, &hints, &res);
/system/core/libnetutils/
H A Difc_utils.c101 struct addrinfo hints, *ai; local
108 memset(&hints, 0, sizeof(hints));
109 hints.ai_family = AF_UNSPEC;
110 hints.ai_flags = AI_NUMERICHOST;
111 hints.ai_socktype = SOCK_DGRAM;
113 ret = getaddrinfo(string, NULL, &hints, &ai);

Completed in 4706 milliseconds