BITKit/Src/Core/Kcp/KCPNet.cs

22 lines
553 B
C#
Raw Normal View History

2023-06-29 14:57:11 +08:00
using kcp2k;
namespace BITKit.Net
{
public class KCPNet
{
public static readonly KcpConfig Config = new KcpConfig(
NoDelay: true,
DualMode: false,
Interval: 1, // 1ms so at interval code at least runs.
Timeout: 2000,
CongestionWindow: false
2023-08-23 01:59:26 +08:00
)
{
SendWindowSize = Kcp.WND_SND * 1000,
ReceiveWindowSize = Kcp.WND_RCV * 1000,
CongestionWindow= false,
MaxRetransmits = Kcp.DEADLINK * 2
};
2023-06-29 14:57:11 +08:00
}
}