Searched refs:answers (Results 1 – 10 of 10) sorted by relevance
39 val answers = ArrayList<DnsEntry>() in match() constant41 fun getAnswer(hostname: String, type: Int): DnsEntry? = synchronized(answers) { in match()42 return answers.firstOrNull { it.match(hostname, type) } in match()45 fun setAnswer(hostname: String, answer: Array<String>, type: Int) = synchronized(answers) { in <lambda>()48 when (val index = answers.indexOfFirst { it.match(hostname, type) }) { in <lambda>()49 -1 -> answers.add(ans) in <lambda>()50 else -> answers[index] = ans in <lambda>()91 fun clearAll() = synchronized(answers) { in <lambda>()92 answers.clear() in <lambda>()
347 answers.resize(ancount); in read()349 cur = answers[i].read(cur, buffer_end); in read()396 header.ancount = htons(answers.size()); in write()404 for (const DNSRecord& answer : answers) { in write()723 if (!header.answers.empty()) { in handleDNSRequest()724 LOG(INFO) << "already " << header.answers.size() << " answers present in query"; in handleDNSRequest()768 std::vector<DNSRecord>* answers) const { in addAnswerRecords()798 answers->push_back(std::move(record)); in addAnswerRecords()804 if (answers->size() == 0) { in addAnswerRecords()876 header->answers.clear(); in makeErrorResponse()[all …]
96 std::vector<DNSRecord> answers; member243 bool addAnswerRecords(const DNSQuestion& question, std::vector<DNSRecord>* answers) const;
9 'config' and expected answers to 'result' in pbtext. Then, record the
94 header.answers.push_back(std::move(record)); in makeAnswer()
112 header.answers.push_back(std::move(record)); in MakeDnsMessage()
4751 header.answers.push_back(std::move(recordAnswer)); in TEST_P()
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
1dictionary=main:en_us,locale=en_US,description=English (US),date ...
1dictionary=main:en,locale=en,description=English,date=1414726273, ...