/system/core/libcutils/ |
H A D | socket_network_client_windows.c | 39 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 D | socket_network_client_unix.c | 48 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 D | dnschk.cpp | 38 const struct addrinfo hints = { local 51 args.arg1, nullptr, &hints, &result); 62 rval = getaddrinfo(args.arg1, nullptr, &hints, &result);
|
H A D | httpurl.cpp | 98 struct addrinfo hints = { local 110 &hints, &result); 115 &hints, &result);
|
/system/weaved/buffet/ |
H A D | socket_stream.cc | 68 addrinfo hints = {0, AF_UNSPEC, SOCK_STREAM}; local 70 if (getaddrinfo(host.c_str(), service.c_str(), &hints, &result)) {
|
/system/netd/server/ |
H A D | NetdConstants.cpp | 211 addrinfo hints = { local 214 int ret = getaddrinfo(addressString.c_str(), NULL, &hints, &res);
|
H A D | SockDiag.cpp | 134 addrinfo hints = { .ai_flags = AI_NUMERICHOST }; local 141 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) {
|
H A D | TetherController.cpp | 240 addrinfo *res, hints = { .ai_flags = AI_NUMERICHOST }; local 241 int ret = getaddrinfo(servers[i], NULL, &hints, &res);
|
H A D | DnsProxyListener.cpp | 62 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 D | ifc_utils.c | 104 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 D | netd_test.cpp | 131 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 D | sysdeps_win32.cpp | 983 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) {
|