diff --git a/Facepunch.Steamworks/SteamNetworkingUtils.cs b/Facepunch.Steamworks/SteamNetworkingUtils.cs index 44766ff8..03015b31 100644 --- a/Facepunch.Steamworks/SteamNetworkingUtils.cs +++ b/Facepunch.Steamworks/SteamNetworkingUtils.cs @@ -177,6 +177,17 @@ public static int Timeout set => SetConfigInt( NetConfig.TimeoutConnected, value ); } + /// + /// Upper limit of buffered pending bytes to be sent. + /// If this is reached SendMessage will return LimitExceeded. + /// Default is 524288 bytes (512k) + /// + public static int SendBufferSize + { + get => GetConfigInt( NetConfig.SendBufferSize ); + set => SetConfigInt( NetConfig.SendBufferSize, value ); + } + /// /// Get Debug Information via OnDebugOutput event