21 lines
540 B
C#
21 lines
540 B
C#
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: 8000,
|
|
CongestionWindow: false
|
|
)
|
|
{
|
|
SendWindowSize = Kcp.WND_SND * 1000,
|
|
ReceiveWindowSize = Kcp.WND_RCV * 1000,
|
|
CongestionWindow= false,
|
|
MaxRetransmits = Kcp.DEADLINK * 2
|
|
};
|
|
}
|
|
} |