MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / SetupMockIPs

Function SetupMockIPs

tests/test_p2p.py:318–322  ·  view source on GitHub ↗

Add loopback aliases for every mock address that is not already bindable.

()

Source from the content-addressed store, hash-verified

316 # IPv4 on Windows: nothing was added, nothing to remove.
317
318def SetupMockIPs():
319 """Add loopback aliases for every mock address that is not already bindable."""
320 for addr in _ALL_MOCK_ADDRS:
321 _AddLoopbackAddr( addr )
322 print( "Setup complete." )
323
324def CleanupMockIPs():
325 """Remove loopback aliases added by --setup-mock-ips."""

Callers 1

test_p2p.pyFile · 0.85

Calls 1

_AddLoopbackAddrFunction · 0.85

Tested by

no test coverage detected