A class in Alta.NetworkTransport.Runtime, Alta.NetworkingTransport.Kcp.
Global settings asset for the KCP network transport: latency, timeout, window and buffer options used by the KCP client and server wrappers.
Constructors
| Member | What it is |
|---|
KcpSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
| Member | What it is |
|---|
bool CongestionWindow | Turns on KCP's congestion window. Off by default; the tooltip says to keep it off if connections get choked. |
bool DualMode | Listen on IPv6 and IPv4 together. On by default; turn off on IPv4-only platforms. |
int FastResend | KCP fast resend: resend sooner at the cost of bandwidth. Default 2 (turbo). |
uint Interval | KCP internal update interval in milliseconds. Default 10. |
bool MaximizeSendReceiveBuffersToOSLimit | Raises socket send and receive buffers to the OS limit, to avoid drops under load. On by default. |
uint MaxRetransmit | How many times KCP retries a lost message before disconnecting. Default 40. |
bool NoDelay | KCP no-delay mode for lower latency. On by default. |
bool NonAlloc | Use the allocation-free KCP server, client and connection versions. On by default. |
uint ReceiveWindowSize | KCP receive window. Default 4096; also raises the max message size. |
uint SendWindowSize | KCP send window. Default 4096. |
int Timeout | Milliseconds without traffic before KCP drops the connection. Default 1000; KCP pings on its own. |
Used in
Members of other types that take, return or hold a KcpSettings: