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

Function ShouldIncludeKnownAnswer

engine/dlib/src/dlib/mdns.cpp:1058–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056 }
1057
1058 static bool ShouldIncludeKnownAnswer(const BrowserService& service, uint64_t now)
1059 {
1060 if (!service.m_HasPtr || service.m_PtrExpires <= now || service.m_PtrTtl == 0)
1061 return false;
1062
1063 const uint64_t remaining = service.m_PtrExpires - now;
1064 return remaining > HalfSecondsToMicroSeconds(service.m_PtrTtl);
1065 }
1066
1067 static uint32_t BuildQueryMessage(const Browser* browser, uint64_t now, uint8_t* buffer, uint32_t buffer_size)
1068 {

Callers 1

BuildQueryMessageFunction · 0.85

Calls 1

Tested by

no test coverage detected