1
This commit is contained in:
22
Assets/BITKit/Core/Kcp/KCPNet.cs
Normal file
22
Assets/BITKit/Core/Kcp/KCPNet.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user