Skip to main content

KcpSettings

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​

MemberWhat it is
KcpSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

MemberWhat it is
bool CongestionWindowTurns on KCP's congestion window. Off by default; the tooltip says to keep it off if connections get choked.
bool DualModeListen on IPv6 and IPv4 together. On by default; turn off on IPv4-only platforms.
int FastResendKCP fast resend: resend sooner at the cost of bandwidth. Default 2 (turbo).
uint IntervalKCP internal update interval in milliseconds. Default 10.
bool MaximizeSendReceiveBuffersToOSLimitRaises socket send and receive buffers to the OS limit, to avoid drops under load. On by default.
uint MaxRetransmitHow many times KCP retries a lost message before disconnecting. Default 40.
bool NoDelayKCP no-delay mode for lower latency. On by default.
bool NonAllocUse the allocation-free KCP server, client and connection versions. On by default.
uint ReceiveWindowSizeKCP receive window. Default 4096; also raises the max message size.
uint SendWindowSizeKCP send window. Default 4096.
int TimeoutMilliseconds 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: