BITFALL/Assets/BITKit/Core/Kcp/KCPNet.cs

22 lines
555 B
C#
Raw Normal View History

2023-08-12 01:43:24 +08:00
using kcp2k;
namespace BITKit.Net
{
public class KCPNet
{
public static readonly KcpConfig Config = new KcpConfig(
NoDelay: true,
DualMode: false,
2023-10-20 19:31:12 +08:00
Interval: 200, // 1ms so at interval code at least runs.
2023-08-12 01:43:24 +08:00
Timeout: 2000,
CongestionWindow: false
2023-08-23 01:59:40 +08:00
)
{
SendWindowSize = Kcp.WND_SND * 1000,
ReceiveWindowSize = Kcp.WND_RCV * 1000,
CongestionWindow= false,
MaxRetransmits = Kcp.DEADLINK * 2
};
2023-08-12 01:43:24 +08:00
}
}