Searched defs:hints (Results 1 - 12 of 12) 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/weaved/buffet/
H A Dsocket_stream.cc68 addrinfo hints = {0, AF_UNSPEC, SOCK_STREAM}; local
70 if (getaddrinfo(host.c_str(), service.c_str(), &hints, &result)) {
/system/netd/server/
H A DNetdConstants.cpp211 addrinfo hints = { local
214 int ret = getaddrinfo(addressString.c_str(), NULL, &hints, &res);
H A DSockDiag.cpp134 addrinfo hints = { .ai_flags = AI_NUMERICHOST }; local
141 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) {
H A DTetherController.cpp240 addrinfo *res, hints = { .ai_flags = AI_NUMERICHOST }; local
241 int ret = getaddrinfo(servers[i], NULL, &hints, &res);
H A DDnsProxyListener.cpp62 SocketClient *c, char* host, char* service, struct addrinfo* hints,
68 mHints(hints),
261 struct addrinfo* hints = NULL; local
274 hints = (struct addrinfo*) calloc(1, sizeof(struct addrinfo));
275 hints->ai_flags = ai_flags;
276 hints->ai_family = ai_family;
277 hints->ai_socktype = ai_socktype;
278 hints->ai_protocol = ai_protocol;
292 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints, netcontext,
61 GetAddrInfoHandler( SocketClient *c, char* host, char* service, struct addrinfo* hints, const struct android_net_context& netcontext, const android::sp<android::net::metrics::IDnsEventListener>& dnsEventListener) argument
/system/core/libnetutils/
H A Difc_utils.c104 struct addrinfo hints, *ai; local
111 memset(&hints, 0, sizeof(hints));
112 hints.ai_family = AF_UNSPEC;
113 hints.ai_flags = AI_NUMERICHOST;
114 hints.ai_socktype = SOCK_DGRAM;
116 ret = getaddrinfo(string, NULL, &hints, &ai);
/system/netd/tests/
H A Dnetd_test.cpp131 AddrInfo(const char* node, const char* service, const addrinfo& hints) : ai_(nullptr) { argument
132 init(node, service, hints);
141 int init(const char* node, const char* service, const addrinfo& hints) { argument
143 error_ = getaddrinfo(node, service, &hints, &ai_);
597 addrinfo hints; local
598 memset(&hints, 0, sizeof(hints));
599 hints.ai_family = AF_INET;
600 EXPECT_EQ(0, getaddrinfo("hola", nullptr, &hints, &result));
660 addrinfo hints; local
785 addrinfo hints; local
[all...]
/system/core/adb/
H A Dsysdeps_win32.cpp983 struct addrinfo hints; local
984 memset(&hints, 0, sizeof(hints));
985 hints.ai_family = AF_UNSPEC;
986 hints.ai_socktype = type;
987 hints.ai_protocol = GetSocketProtocolFromSocketType(type);
1001 if (getaddrinfo(host.c_str(), port_str, &hints, &addrinfo_ptr) != 0) {

Completed in 222 milliseconds