Skip to content

Networking configuration TCP

Alexander edited this page Aug 25, 2022 · 2 revisions

Common

.ConnectionSimulation - allows you to simulate bad network behaviour. Packet loss applied only to UDP (default: null)

.LingerOption - MSDN (default: LingerOption(true, 15))

.NoDelay - Gets or sets a value that specifies whether the stream is using the Nagle algorithm. MSDN (default: true)

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

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

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

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

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

.KeepAliveEnabled - if enabled we will send ping packets to the other peer every .KeepAliveInterval (default: true)

.KeepAliveInterval - interval for pings (default: 1000)

.KeepAliveTimeout - if we haven't got response for ping within timeout, we drop the connection (default: 10000)

Synchronization

See more: Neon synchronization

Server

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

.ListenBacklog - the maximum length of the pending connections queue (default: 100)

.AcceptThreads - the amount of threads who accepting connections (default: 1)

Client

.ConnectTimeout - timeout for .ConnectAsync method

Clone this wiki locally