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

Function ResetProbeState

engine/dlib/src/dlib/mdns.cpp:1187–1194  ·  view source on GitHub ↗

Centralizes probe-state transitions so conflict and tiebreak paths reset counters consistently before either retrying or stopping.

Source from the content-addressed store, hash-verified

1185 // Centralizes probe-state transitions so conflict and tiebreak paths reset
1186 // counters consistently before either retrying or stopping.
1187 static void ResetProbeState(RegisteredService* service, uint64_t next_probe, uint8_t state)
1188 {
1189 service->m_State = state;
1190 service->m_ProbeCount = 0;
1191 service->m_StartupAnnounceCount = 0;
1192 service->m_NextProbe = next_probe;
1193 service->m_NextAnnounce = 0;
1194 }
1195
1196 static void DeferProbeAfterTiebreak(RegisteredService* service)
1197 {

Callers 2

DeferProbeAfterTiebreakFunction · 0.85
MarkServiceConflictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected