Lines Matching refs:question
234 bool IsServiceTypeEnumerationQuery(const MdnsQuestion& question) { in IsServiceTypeEnumerationQuery() argument
235 if (question.dns_type() != DnsType::kPTR) { in IsServiceTypeEnumerationQuery()
239 if (question.name().labels().size() < in IsServiceTypeEnumerationQuery()
244 const auto question_it = question.name().labels().begin(); in IsServiceTypeEnumerationQuery()
522 for (const auto& question : questions) { in ProcessQueries() local
524 << question.name().ToString() << "', type: '" in ProcessQueries()
525 << question.dns_type() << "' from '" << src << "'"; in ProcessQueries()
528 if (question.dns_type() == DnsType::kNSEC) { in ProcessQueries()
536 const bool is_service_enumeration = IsServiceTypeEnumerationQuery(question); in ProcessQueries()
538 ownership_handler_->IsDomainClaimed(question.name()); in ProcessQueries()
540 !record_handler_->HasRecords(question.name(), question.dns_type(), in ProcessQueries()
541 question.dns_class())) { in ProcessQueries()
551 if (question.response_type() == ResponseType::kMulticast) { in ProcessQueries()
556 OSP_DCHECK(question.response_type() == ResponseType::kUnicast); in ProcessQueries()
566 SendResponse(question, known_answers, send_response, is_exclusive_owner); in ProcessQueries()
569 std::function<void()> response = [this, question, known_answers, in ProcessQueries()
571 SendResponse(question, known_answers, send_response, in ProcessQueries()
580 const MdnsQuestion& question, in SendResponse() argument
588 if (IsServiceTypeEnumerationQuery(question)) { in SendResponse()
592 question.name(), question.dns_class()); in SendResponse()
599 ApplyQueryResults(&message, record_handler_, question.name(), known_answers, in SendResponse()
600 question.dns_type(), question.dns_class(), in SendResponse()
606 << question.name().ToString() << "', type: '" << question.dns_type() in SendResponse()