NetManager Fields

LiteNetLib

NetManager Fields

LiteNetLib

The NetManager type exposes the following members.

Fields

  NameDescription
Public fieldConnectKey
Current connection key
Public fieldDisconnectTimeout
If NetManager doesn't receive any packet from remote peer during this time then connection will be closed (including library internal keepalive packets)
Public fieldDiscoveryEnabled
Allows receive DiscoveryRequests
Public fieldMaxConnectAttempts
Maximum connection attempts before client stops and call disconnect event.
Public fieldMergeEnabled
Merge small packets into one before sending to reduce outgoing packets count. (May increase a bit outgoing data size)
Public fieldNatPunchEnabled
Enable nat punch messages
Public fieldNatPunchModule
NatPunchModule for NAT hole punching operations
Public fieldPingInterval
Interval for latency detection and checking connection
Public fieldReconnectDelay
Delay betwen initial connection attempts
Public fieldReuseAddress
Enables socket option "ReuseAddress" for specific purposes
Public fieldSimulateLatency
Simulate latency by holding packets for random time. (Works only in DEBUG mode)
Public fieldSimulatePacketLoss
Simulate packet loss by dropping random amout of packets. (Works only in DEBUG mode)
Public fieldSimulationMaxLatency
Maximum simulated latency
Public fieldSimulationMinLatency
Minimum simulated latency
Public fieldSimulationPacketLossChance
Chance of packet loss when simulation enabled. value in percents (1 - 100).
Public fieldUnconnectedMessagesEnabled
Enable messages receiving without connection. (with SendUnconnectedMessage method)
Public fieldUnsyncedEvents
Experimental feature. Events automatically will be called without PollEvents method from another thread
Top
See Also

Reference