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

Function DeferProbeAfterTiebreak

engine/dlib/src/dlib/mdns.cpp:1196–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1194 }
1195
1196 static void DeferProbeAfterTiebreak(RegisteredService* service)
1197 {
1198 // When we lose a simultaneous probe tiebreak, wait one second before
1199 // probing again. This avoids treating stale looped-back probe packets
1200 // as permanent conflicts while still allowing the real winner to defend.
1201 ResetProbeState(service, GetNow() + SecondsToMicroSeconds(MDNS_PROBE_RESTART_DELAY), SERVICE_STATE_PROBING);
1202 }
1203
1204 static void MarkServiceConflict(RegisteredService* service)
1205 {

Callers 1

HandleIncomingQueriesFunction · 0.85

Calls 3

ResetProbeStateFunction · 0.85
GetNowFunction · 0.85
SecondsToMicroSecondsFunction · 0.85

Tested by

no test coverage detected