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

Function Update

engine/dlib/src/dlib/mdns.cpp:2439–2455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2437 }
2438
2439 void Update(HMDNS mdns)
2440 {
2441 if (mdns == 0)
2442 return;
2443
2444 const uint64_t now = GetNow();
2445 if (now >= mdns->m_NextInterfaceRefresh)
2446 {
2447 RefreshInterfaceAddresses(mdns);
2448 EnsureMemberships(mdns->m_Socket, mdns->m_InterfaceAddresses, &mdns->m_MembershipAddresses);
2449 RefreshRegisteredServiceAddresses(mdns);
2450 mdns->m_NextInterfaceRefresh = now + SecondsToMicroSeconds(MDNS_INTERFACE_REFRESH_INTERVAL);
2451 }
2452
2453 HandleIncomingQueries(mdns);
2454 AdvanceServiceLifecycle(mdns, now);
2455 }
2456
2457 Result Delete(HMDNS mdns)
2458 {

Callers 10

PumpFunction · 0.50
WaitForMatchingResponseFunction · 0.50
WaitForMatchingQuestionFunction · 0.50
PumpMdnsPairFunction · 0.50
CollectResponseTxtIdsFunction · 0.50
TESTFunction · 0.50
ServerThreadMethod · 0.50
TEST_FFunction · 0.50
ServerThreadMethod · 0.50
TEST_FFunction · 0.50

Calls 7

GetNowFunction · 0.85
EnsureMembershipsFunction · 0.85
SecondsToMicroSecondsFunction · 0.85
HandleIncomingQueriesFunction · 0.85
AdvanceServiceLifecycleFunction · 0.85

Tested by 10

PumpFunction · 0.40
WaitForMatchingResponseFunction · 0.40
WaitForMatchingQuestionFunction · 0.40
PumpMdnsPairFunction · 0.40
CollectResponseTxtIdsFunction · 0.40
TESTFunction · 0.40
ServerThreadMethod · 0.40
TEST_FFunction · 0.40
ServerThreadMethod · 0.40
TEST_FFunction · 0.40