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

Function RefreshInterfaceAddresses

engine/dlib/src/dlib/mdns.cpp:431–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429 }
430
431 static void RefreshInterfaceAddresses(MDNS* mdns)
432 {
433 CollectInterfaceAddresses(&mdns->m_InterfaceAddresses);
434 if (mdns->m_InterfaceAddresses.Size() > 0)
435 {
436 mdns->m_DefaultAddress = mdns->m_InterfaceAddresses[0];
437 }
438 }
439
440 // Interface enumeration order is not stable across refreshes, so detect
441 // topology changes by comparing the address sets rather than array order.

Callers 2

NewFunction · 0.85
UpdateFunction · 0.85

Calls 2

SizeMethod · 0.45

Tested by

no test coverage detected