Searched refs:addrs (Results 1 – 2 of 2) sorted by relevance
25 bool resolve(const char* name, const char* port, struct addrinfo** addrs) { in resolve() argument31 int res = ::getaddrinfo(name, port, &hints, addrs); in resolve()40 int runClient(struct addrinfo* addrs) { in runClient() argument42 for (struct addrinfo* addr = addrs; addr != nullptr; addr = addr->ai_next) { in runClient()52 ::freeaddrinfo(addrs); in runClient()66 int runServer(struct addrinfo* addrs) { in runServer() argument68 for (struct addrinfo* addr = addrs; addr != nullptr; addr = addr->ai_next) { in runServer()78 ::freeaddrinfo(addrs); in runServer()196 struct addrinfo* addrs = nullptr; in main() local202 if (!resolve(argv[2], argv[3], &addrs)) { in main()[all …]
438 auto addrs = reinterpret_cast<const in6_addr*>(addrLoc); in onReadAvailable() local441 dnsServers.push_back(addrs[i]); in onReadAvailable()