This commit is contained in:
CortexCore
2024-11-03 16:42:23 +08:00
commit b125894cc3
5904 changed files with 1070129 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using kcp2k;
namespace BITKit.Net
{
public class KCPNet
{
public static readonly KcpConfig Config = new KcpConfig(
NoDelay: true,
DualMode: false,
Interval: 8, // 1ms so at interval code at least runs.
Timeout: 8000,
CongestionWindow: false
)
{
SendWindowSize = Kcp.WND_SND * 1000,
ReceiveWindowSize = Kcp.WND_RCV * 1000,
CongestionWindow= false,
MaxRetransmits = Kcp.DEADLINK * 2
};
}
}