22 lines
553 B
C#
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
|
||
|
};
|
||
|
}
|
||
|
}
|