Lines Matching refs:dnsq
104 DNSResolverStatus DNSTracker::resolve(Address *result, DNSQuery *dnsq) { in resolve() argument
107 auto it = ents_.find(dnsq->host); in resolve()
111 LOG(INFO) << "DNS entry not found for " << dnsq->host; in resolve()
116 ImmutableString{std::begin(dnsq->host), std::end(dnsq->host)}; in resolve()
166 add_to_qlist(ent, dnsq); in resolve()
179 LOG(INFO) << "DNS entry found for " << dnsq->host in resolve()
217 add_to_qlist(ent, dnsq); in resolve()
228 LOG(INFO) << "Waiting for name lookup complete for " << dnsq->host; in resolve()
230 ent.qlist.append(dnsq); in resolve()
231 dnsq->in_qlist = true; in resolve()
235 LOG(INFO) << "Name lookup failed for " << dnsq->host << " (cached)"; in resolve()
240 LOG(INFO) << "Name lookup succeeded (cached): " << dnsq->host << " -> " in resolve()
253 void DNSTracker::add_to_qlist(ResolverEntry &ent, DNSQuery *dnsq) { in add_to_qlist() argument
276 ent.qlist.append(dnsq); in add_to_qlist()
277 dnsq->in_qlist = true; in add_to_qlist()
280 void DNSTracker::cancel(DNSQuery *dnsq) { in cancel() argument
281 if (!dnsq->in_qlist) { in cancel()
285 auto it = ents_.find(dnsq->host); in cancel()
291 ent.qlist.remove(dnsq); in cancel()
292 dnsq->in_qlist = false; in cancel()