Skip to content

Networking configuration UDP

Alexander edited this page Aug 29, 2022 · 4 revisions

Common

.LogManager - log manager for network logs, see more (default: Logging.LogManager.Dummy)

.MemoryManager - a manager who provide us streams and arrays for a temporary use (default: Neon.Util.Pooling.MemoryManager.Shared)

.ConnectionSimulation - allows you to simulate bad network behaviour (default: null)

.SendBufferSize - Set socket send buffer size (default: 65535)

.ReceiveBufferSize - Set socket receive buffer size (default: 1048676)

.ReuseAddress - Set SocketOptionName.ReuseAddress (default: true)

.ConnectionTimeout - if no packets received within this timeout, connection considered dead (default: 10000)

.NetworkReceiveThreads - the amount of threads for grabbing packets from the socket (default: Math.Max(1, Environment.ProcessorCount - 1))

.LimitMtu - do not expand MTU greater than this value (default: int.MaxValue)

.KeepAliveInterval - interval for pings (default: 1000)

.ConnectionLingerTimeout - connection will be destroyed after linger timeout (default: 60000)

.TooLargeUnreliableMessageBehaviour - if you try to send too large unreliable message (that couldn't be fragmented) what we should do: drop it ot throw an exception (default: RaiseException)

Synchronization

See more: Neon synchronization

Server

.MaximumConnections - if we reach maximum connections threshold, new connections won't be accepted (default: int.MaxValue)

Client

.AutoMtuExpand - should we try to expand MTU after a connection established (default: true)

.MtuExpandMaxFailAttempts - max attempts to expand MTU in case of fail (default: 5)

.MtuExpandFrequency - interval for retrying MTU expand messages in case of MTU fail (default: 2000)

Clone this wiki locally