From 23129f3a835105c43948b2d13fb2dcf82a10e495 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Fri, 28 Feb 2020 15:34:41 +0000 Subject: [PATCH] Added SteamNetworkingUtils.SendBufferSize --- Facepunch.Steamworks/SteamNetworkingUtils.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Facepunch.Steamworks/SteamNetworkingUtils.cs b/Facepunch.Steamworks/SteamNetworkingUtils.cs index 44766ff..03015b3 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