Home
last modified time | relevance | path

Searched refs:addrinfo (Results 1 – 14 of 14) sorted by relevance

/system/extras/multinetwork/
Ddnschk.cpp38 const struct addrinfo hints = { in main()
42 struct addrinfo *result = nullptr; in main()
77 for (struct addrinfo* rp = result; rp != nullptr; rp = rp->ai_next) { in main()
Dhttpurl.cpp98 struct addrinfo hints = { in parseUrl()
102 struct addrinfo *result = nullptr; in parseUrl()
/system/core/libcutils/
Dsocket_network_client_windows.c39 struct addrinfo hints; in socket_network_client()
43 struct addrinfo* address = NULL; in socket_network_client()
Dsocket_network_client_unix.c48 struct addrinfo hints; in socket_network_client_timeout()
56 struct addrinfo* addrs; in socket_network_client_timeout()
/system/netd/tests/
Dnetd_test.cpp131 AddrInfo(const char* node, const char* service, const addrinfo& hints) : ai_(nullptr) { in AddrInfo()
141 int init(const char* node, const char* service, const addrinfo& hints) { in init()
161 const addrinfo& operator*() const { return *ai_; } in operator *()
162 const addrinfo* get() const { return ai_; } in get()
163 const addrinfo* operator&() const { return ai_; } in operator &()
167 addrinfo* ai_;
329 std::string ToString(const addrinfo* ai) const { in ToString()
385 addrinfo* result = nullptr; in RunGetAddrInfoStressTest_Binder()
508 addrinfo* result = nullptr; in TEST_F()
585 addrinfo* result = nullptr; in TEST_F()
[all …]
Ddns_responder.cpp571 addrinfo ai_hints{ in startServer()
576 addrinfo* ai_res; in startServer()
585 for (const addrinfo* ai = ai_res ; ai ; ai = ai->ai_next) { in startServer()
/system/netd/server/
DDnsProxyListener.cpp62 SocketClient *c, char* host, char* service, struct addrinfo* hints, in GetAddrInfoHandler()
152 static bool sendaddrinfo(SocketClient* c, struct addrinfo* ai) { in sendaddrinfo()
196 struct addrinfo* result = NULL; in run()
206 struct addrinfo* ai = result; in run()
261 struct addrinfo* hints = NULL; in runCommand()
274 hints = (struct addrinfo*) calloc(1, sizeof(struct addrinfo)); in runCommand()
DDnsProxyListener.h60 struct addrinfo* hints,
73 struct addrinfo* mHints; // owned
DSockDiag.cpp46 void operator()(addrinfo *a) { if (a) freeaddrinfo(a); } in operator ()()
49 typedef std::unique_ptr<addrinfo, AddrinfoDeleter> ScopedAddrinfo;
134 addrinfo hints = { .ai_flags = AI_NUMERICHOST }; in sendDumpRequest()
135 addrinfo *res; in sendDumpRequest()
DNetdConstants.cpp210 addrinfo *res; in parsePrefix()
211 addrinfo hints = { in parsePrefix()
DTetherController.cpp240 addrinfo *res, hints = { .ai_flags = AI_NUMERICHOST }; in setDnsForwarders()
/system/weaved/buffet/
Dsocket_stream.cc68 addrinfo hints = {0, AF_UNSPEC, SOCK_STREAM}; in ConnectSocket()
69 addrinfo* result = nullptr; in ConnectSocket()
76 for (const addrinfo* info = result; info != nullptr; info = info->ai_next) { in ConnectSocket()
/system/core/adb/
Dsysdeps_win32.cpp983 struct addrinfo hints; in network_connect()
992 struct addrinfo* addrinfo_ptr = nullptr; in network_connect()
1011 std::unique_ptr<struct addrinfo, decltype(freeaddrinfo)*> addrinfo(addrinfo_ptr, freeaddrinfo); in network_connect() local
1017 SOCKET s = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in network_connect()
1030 if (connect(s, addrinfo->ai_addr, addrinfo->ai_addrlen) == SOCKET_ERROR) { in network_connect()
/system/core/libnetutils/
Difc_utils.c104 struct addrinfo hints, *ai; in string_to_ip()