Home
last modified time | relevance | path

Searched refs:MdnsQuestion (Results 1 – 25 of 25) sorted by relevance

/external/webrtc/p2p/base/
Dmdns_message.cc182 MdnsQuestion::MdnsQuestion() = default;
183 MdnsQuestion::MdnsQuestion(const MdnsQuestion& other) = default;
184 MdnsQuestion::~MdnsQuestion() = default;
186 bool MdnsQuestion::Read(MessageBufferReader* buf) { in Read()
198 bool MdnsQuestion::Write(rtc::ByteBufferWriter* buf) const { in Write()
205 void MdnsQuestion::SetUnicastResponse(bool should_unicast) { in SetUnicastResponse()
213 bool MdnsQuestion::ShouldUnicastResponse() const { in ShouldUnicastResponse()
323 auto read_question = [&buf](std::vector<MdnsQuestion>* section, in Read()
386 void MdnsMessage::AddQuestion(const MdnsQuestion& question) { in AddQuestion()
Dmdns_message.h101 class MdnsQuestion final : public MdnsSectionEntry {
103 MdnsQuestion();
104 MdnsQuestion(const MdnsQuestion& other);
105 ~MdnsQuestion() override;
179 void AddQuestion(const MdnsQuestion& question);
183 const std::vector<MdnsQuestion>& question_section() const { in question_section()
198 std::vector<MdnsQuestion> question_section_;
Dmdns_message_unittest.cc494 MdnsQuestion question; in TEST()
510 MdnsQuestion question1; in TEST()
516 MdnsQuestion question2; in TEST()
/external/openscreen/discovery/mdns/
Dmdns_records_unittest.cc605 MdnsQuestion question1; in TEST()
612 MdnsQuestion question2(DomainName{"testing", "local"}, DnsType::kPTR, in TEST()
622 MdnsQuestion question1(DomainName{"testing", "local"}, DnsType::kPTR, in TEST()
624 MdnsQuestion question2(DomainName{"testing", "local"}, DnsType::kPTR, in TEST()
626 MdnsQuestion question3(DomainName{"hostname", "local"}, DnsType::kPTR, in TEST()
628 MdnsQuestion question4(DomainName{"testing", "local"}, DnsType::kA, in TEST()
630 MdnsQuestion question5(DomainName{"hostname", "local"}, DnsType::kPTR, in TEST()
643 MdnsQuestion question(DomainName{"testing", "local"}, DnsType::kPTR, in TEST()
658 MdnsQuestion question(DomainName{"testing", "local"}, DnsType::kPTR, in TEST()
696 123, MessageType::Response, std::vector<MdnsQuestion>{question}, in TEST()
[all …]
Dmdns_records.h521 class MdnsQuestion {
523 static ErrorOr<MdnsQuestion> TryCreate(DomainName name,
528 MdnsQuestion() = default;
529 MdnsQuestion(DomainName name,
534 bool operator==(const MdnsQuestion& other) const;
535 bool operator!=(const MdnsQuestion& other) const;
544 friend H AbslHashValue(H h, const MdnsQuestion& record) { in AbslHashValue()
550 void CopyFrom(const MdnsQuestion& other);
573 std::vector<MdnsQuestion> questions,
584 std::vector<MdnsQuestion> questions,
[all …]
Dmdns_responder.h108 const std::vector<MdnsQuestion>& questions() const { return questions_; } in questions()
125 std::vector<MdnsQuestion> questions_;
142 const std::vector<MdnsQuestion>& questions,
146 void SendResponse(const MdnsQuestion& question,
Dmdns_records.cc714 ErrorOr<MdnsQuestion> MdnsQuestion::TryCreate(DomainName name, in TryCreate()
722 return MdnsQuestion(std::move(name), dns_type, dns_class, response_type); in TryCreate()
725 MdnsQuestion::MdnsQuestion(DomainName name, in MdnsQuestion() function in openscreen::discovery::MdnsQuestion
736 bool MdnsQuestion::operator==(const MdnsQuestion& rhs) const { in operator ==()
741 bool MdnsQuestion::operator!=(const MdnsQuestion& rhs) const { in operator !=()
745 size_t MdnsQuestion::MaxWireSize() const { in MaxWireSize()
754 std::vector<MdnsQuestion> questions, in TryCreate()
775 std::vector<MdnsQuestion> questions, in MdnsMessage()
790 for (const MdnsQuestion& question : questions_) { in MdnsMessage()
822 for (const MdnsQuestion& question : questions_) { in IsProbeQuery()
[all …]
Dmdns_trackers.h207 MdnsQuestionTracker(MdnsQuestion question,
222 const MdnsQuestion& question() const { return question_; } in question()
238 MdnsQuestion question_;
Dmdns_reader_unittest.cc595 MdnsQuestion(DomainName{"testing", "local"}, DnsType::kA, DnsClass::kIN, in TEST()
617 MdnsQuestion question; in TEST()
619 EXPECT_EQ(question, MdnsQuestion(DomainName{"first", "local"}, DnsType::kA, in TEST()
622 EXPECT_EQ(question, MdnsQuestion(DomainName{"second", "local"}, DnsType::kPTR, in TEST()
637 TestReadEntryFails<MdnsQuestion>(kTestQuestion, sizeof(kTestQuestion)); in TEST()
677 MdnsMessage message(1, MessageType::Response, std::vector<MdnsQuestion>{}, in TEST()
Dmdns_writer_unittest.cc400 MdnsQuestion(DomainName{"wire", "format", "local"}, DnsType::kPTR, in TEST()
407 MdnsQuestion(DomainName{"wire", "format", "local"}, DnsType::kPTR, in TEST()
436 MdnsQuestion question(DomainName{"question"}, DnsType::kPTR, DnsClass::kIN, in TEST()
455 MdnsQuestion question(DomainName{"question"}, DnsType::kPTR, DnsClass::kIN, in TEST()
Dmdns_reader.cc304 bool MdnsReader::Read(MdnsQuestion* out) { in Read()
311 ErrorOr<MdnsQuestion> question = in Read()
312 MdnsQuestion::TryCreate(std::move(name), static_cast<DnsType>(type), in Read()
329 std::vector<MdnsQuestion> questions; in Read()
Dmdns_responder.cc234 bool IsServiceTypeEnumerationQuery(const MdnsQuestion& question) { in IsServiceTypeEnumerationQuery()
436 const std::vector<MdnsQuestion>& questions = message.questions(); in OnMessageReceived()
520 const std::vector<MdnsQuestion>& questions, in ProcessQueries()
580 const MdnsQuestion& question, in SendResponse()
Dmdns_writer.h42 bool Write(const MdnsQuestion& question);
Dmdns_querier.cc454 const MdnsQuestion& tracked_question = in StartQuery()
461 MdnsQuestion(name, dns_type, dns_class, ResponseType::kMulticast)); in StartQuery()
504 const MdnsQuestion& tracked_question = entry->second->question(); in StopQuery()
822 void MdnsQuerier::AddQuestion(const MdnsQuestion& question) { in AddQuestion()
847 const MdnsQuestion& query = entry->second->question(); in AddRecord()
Dmdns_reader.h44 bool Read(MdnsQuestion* out);
Dmdns_receiver_unittest.cc57 MdnsQuestion question(DomainName{"testing", "local"}, DnsType::kA, in TEST()
Dmdns_probe.cc67 MdnsQuestion probe_question(target_name(), DnsType::kANY, DnsClass::kIN, in ProbeOnce()
Dmdns_responder_unittest.cc177 MdnsQuestion question(domain_, type, DnsClass::kANY, in QueryForRecordTypeWhenNonePresent()
194 MdnsQuestion question(domain_, type, DnsClass::kANY, in CreateMulticastMdnsQuery()
203 MdnsQuestion question(type_enumeration_domain_, DnsType::kPTR, in CreateTypeEnumerationQuery()
265 MdnsQuestion question2(domain_, DnsType::kANY, DnsClass::kANY, in TEST_F()
287 MdnsQuestion question(domain_, DnsType::kANY, DnsClass::kANY, in TEST_F()
343 MdnsQuestion question(ptr_domain, DnsType::kPTR, DnsClass::kANY, in TEST_F()
Dmdns_sender_unittest.cc97 MdnsQuestion a_question_;
Dmdns_querier.h201 void AddQuestion(const MdnsQuestion& question);
Dmdns_trackers_unittest.cc119 const MdnsQuestion& question, in CreateQuestionTracker()
182 MdnsQuestion a_question_;
Dmdns_probe_manager.cc99 const std::vector<MdnsQuestion>& questions = message.questions(); in RespondToProbeQuery()
Dmdns_writer.cc228 bool MdnsWriter::Write(const MdnsQuestion& question) { in Write()
Dmdns_trackers.cc292 MdnsQuestionTracker::MdnsQuestionTracker(MdnsQuestion question, in MdnsQuestionTracker()
Dmdns_probe_manager_unittest.cc121 MdnsQuestion question(domain, DnsType::kANY, DnsClass::kANY, in CreateProbeQueryMessage()