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

Function PacketMatchesNames

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

Source from the content-addressed store, hash-verified

828 }
829
830 static bool PacketMatchesNames(const RawDnsPacket& packet, const std::vector<std::string>& names)
831 {
832 for (uint32_t i = 0; i < packet.m_Records.size(); ++i)
833 {
834 for (uint32_t j = 0; j < names.size(); ++j)
835 {
836 if (dmStrCaseCmp(packet.m_Records[i].m_Name.c_str(), names[j].c_str()) == 0)
837 return true;
838 }
839 }
840 return false;
841 }
842
843 static bool SetupMulticastCapture(MulticastCapture* capture)
844 {

Callers 1

Calls 2

dmStrCaseCmpFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected