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

Function ClearConfig

tests/test_connection.cpp:353–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353static void ClearConfig()
354{
355 for (
356 ESteamNetworkingConfigValue eValue = SteamNetworkingUtils()->IterateGenericEditableConfigValues( k_ESteamNetworkingConfig_Invalid, true );
357 eValue != k_ESteamNetworkingConfig_Invalid;
358 eValue = SteamNetworkingUtils()->IterateGenericEditableConfigValues( eValue, true )
359 ) {
360 if ( eValue == k_ESteamNetworkingConfig_IP_AllowWithoutAuth )
361 continue;
362 SteamNetworkingUtils()->SetConfigValue( eValue, k_ESteamNetworkingConfig_Global, 0, k_ESteamNetworkingConfig_Int32, nullptr );
363 }
364}
365
366static void TestNetworkConditions( int rate, float loss, int lag, float reorderPct, int reorderLag, bool bActLikeGame, ETestConnectionMode eMode )
367{

Callers 1

mainFunction · 0.85

Calls 3

SteamNetworkingUtilsFunction · 0.85
SetConfigValueMethod · 0.80

Tested by

no test coverage detected