Files
BITFALL/Assets/BITKit/Core/Kcp/KCPNet.cs
CortexCore 0b66b0a19e 1
2024-08-11 12:46:15 +08:00

22 lines
553 B
C#

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
};
}
}