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

Function AllRecordsHaveTtl

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

Source from the content-addressed store, hash-verified

815 }
816
817 static bool AllRecordsHaveTtl(const RawDnsPacket& packet, uint32_t ttl)
818 {
819 if (packet.m_Records.empty())
820 return false;
821
822 for (uint32_t i = 0; i < packet.m_Records.size(); ++i)
823 {
824 if (packet.m_Records[i].m_Ttl != ttl)
825 return false;
826 }
827 return true;
828 }
829
830 static bool PacketMatchesNames(const RawDnsPacket& packet, const std::vector<std::string>& names)
831 {

Callers 1

TESTFunction · 0.85

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected