From 122c2b0a579a041593f2c5e3adbd49b27b8c40c6 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 26 Feb 2020 12:41:20 +0000 Subject: [PATCH] Added SteamNetworkingUtils.ConnectionTimeout --- Facepunch.Steamworks/SteamNetworkingUtils.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Facepunch.Steamworks/SteamNetworkingUtils.cs b/Facepunch.Steamworks/SteamNetworkingUtils.cs index b53760b..b584955 100644 --- a/Facepunch.Steamworks/SteamNetworkingUtils.cs +++ b/Facepunch.Steamworks/SteamNetworkingUtils.cs @@ -159,6 +159,15 @@ namespace Steamworks set => SetConfigFloat( NetConfig.FakePacketLag_Recv, value ); } + /// + /// Timeout value (in ms) to use when first connecting + /// + public static int ConnectionTimeout + { + get => GetConfigInt( NetConfig.TimeoutInitial ); + set => SetConfigInt( NetConfig.TimeoutInitial, value ); + } + ///