Searched refs:hints (Results 1 - 14 of 14) sorted by relevance

/system/core/libcutils/
H A Dsocket_network_client_windows.c39 struct addrinfo hints; local
40 memset(&hints, 0, sizeof(hints));
41 hints.ai_socktype = type;
46 if (getaddrinfo(host, port_str, &hints, &address) != 0 || address == NULL) {
H A Dsocket_network_client_unix.c48 struct addrinfo hints; local
49 memset(&hints, 0, sizeof(hints));
50 hints.ai_family = AF_UNSPEC;
51 hints.ai_socktype = type;
57 *getaddrinfo_error = getaddrinfo(host, port_str, &hints, &addrs);
/system/extras/multinetwork/
H A Ddnschk.cpp38 const struct addrinfo hints = { local
51 args.arg1, nullptr, &hints, &result);
62 rval = getaddrinfo(args.arg1, nullptr, &hints, &result);
H A Dhttpurl.cpp98 struct addrinfo hints = { local
110 &hints, &result);
115 &hints, &result);
/system/netd/tests/
H A Dnetd_test.cpp87 AddrInfo(const char* node, const char* service, const addrinfo& hints) : ai_(nullptr) { argument
88 init(node, service, hints);
97 int init(const char* node, const char* service, const addrinfo& hints) { argument
99 error_ = getaddrinfo(node, service, &hints, &ai_);
458 addrinfo hints; local
459 memset(&hints, 0, sizeof(hints));
460 hints.ai_family = AF_INET;
461 EXPECT_EQ(0, getaddrinfo("hola", nullptr, &hints, &result));
521 addrinfo hints; local
646 addrinfo hints; local
[all...]
H A Dbinder_test.cpp455 const struct addrinfo hints = { local
460 if (getaddrinfo(addrString, nullptr, &hints, &addrinfoList) != 0 ||
/system/netd/server/
H A DDnsProxyListener.cpp125 SocketClient *c, char* host, char* service, struct addrinfo* hints,
131 mHints(hints),
334 struct addrinfo* hints = NULL; local
347 hints = (struct addrinfo*) calloc(1, sizeof(struct addrinfo));
348 hints->ai_flags = ai_flags;
349 hints->ai_family = ai_family;
350 hints->ai_socktype = ai_socktype;
351 hints->ai_protocol = ai_protocol;
366 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, netcontext,
124 GetAddrInfoHandler( SocketClient *c, char* host, char* service, struct addrinfo* hints, const struct android_net_context& netcontext, const int reportingLevel, const android::sp<android::net::metrics::INetdEventListener>& netdEventListener) argument
H A DDnsProxyListener.h55 // Note: All of host, service, and hints may be NULL
59 struct addrinfo* hints,
H A DNetdConstants.cpp191 addrinfo hints = { local
194 int ret = getaddrinfo(addressString.c_str(), NULL, &hints, &res);
H A DTetherController.cpp262 addrinfo *res, hints = { .ai_flags = AI_NUMERICHOST }; local
263 int ret = getaddrinfo(servers[i], NULL, &hints, &res);
H A DSockDiagTest.cpp215 addrinfo hints = { .ai_flags = AI_NUMERICHOST }, *src, *dst; local
216 EXPECT_EQ(0, getaddrinfo(srcstr, NULL, &hints, &src));
217 EXPECT_EQ(0, getaddrinfo(dststr, NULL, &hints, &dst));
H A DSockDiag.cpp136 addrinfo hints = { .ai_flags = AI_NUMERICHOST }; local
143 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) {
/system/core/libnetutils/
H A Difc_utils.c100 struct addrinfo hints, *ai; local
107 memset(&hints, 0, sizeof(hints));
108 hints.ai_family = AF_UNSPEC;
109 hints.ai_flags = AI_NUMERICHOST;
110 hints.ai_socktype = SOCK_DGRAM;
112 ret = getaddrinfo(string, NULL, &hints, &ai);
/system/core/adb/
H A Dsysdeps_win32.cpp844 struct addrinfo hints; local
845 memset(&hints, 0, sizeof(hints));
846 hints.ai_family = AF_UNSPEC;
847 hints.ai_socktype = type;
848 hints.ai_protocol = GetSocketProtocolFromSocketType(type);
862 if (getaddrinfo(host.c_str(), port_str, &hints, &addrinfo_ptr) != 0) {

Completed in 147 milliseconds