-
Notifications
You must be signed in to change notification settings - Fork 1
Networking configuration TCP
.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)
See more: Neon synchronization
.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)
.ConnectTimeout - timeout for .ConnectAsync method