MCPcopy Create free account
hub / github.com/defold/defold / HasQuestion

Function HasQuestion

engine/dlib/src/test/test_mdns.cpp:780–793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778 }
779
780 static bool HasQuestion(const RawDnsPacket& packet, const char* name, uint16_t type, uint16_t klass)
781 {
782 for (uint32_t i = 0; i < packet.m_Questions.size(); ++i)
783 {
784 const RawDnsQuestion& question = packet.m_Questions[i];
785 if (question.m_Type == type
786 && question.m_Class == klass
787 && dmStrCaseCmp(question.m_Name.c_str(), name) == 0)
788 {
789 return true;
790 }
791 }
792 return false;
793 }
794
795 static const RawDnsRecord* FindRecord(const RawDnsPacket& packet, uint16_t type, const char* name)
796 {

Callers 2

TESTFunction · 0.85

Calls 2

dmStrCaseCmpFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected