NetManager Fields |
LiteNetLib |
The NetManager type exposes the following members.
Fields
Name | Description | |
---|---|---|
![]() | ConnectKey |
Current connection key
|
![]() | DisconnectTimeout |
If NetManager doesn't receive any packet from remote peer during this time then connection will be closed
(including library internal keepalive packets)
|
![]() | DiscoveryEnabled |
Allows receive DiscoveryRequests
|
![]() | MaxConnectAttempts |
Maximum connection attempts before client stops and call disconnect event.
|
![]() | MergeEnabled |
Merge small packets into one before sending to reduce outgoing packets count. (May increase a bit outgoing data size)
|
![]() | NatPunchEnabled |
Enable nat punch messages
|
![]() | NatPunchModule |
NatPunchModule for NAT hole punching operations
|
![]() | PingInterval |
Interval for latency detection and checking connection
|
![]() | ReconnectDelay |
Delay betwen initial connection attempts
|
![]() | ReuseAddress |
Enables socket option "ReuseAddress" for specific purposes
|
![]() | SimulateLatency |
Simulate latency by holding packets for random time. (Works only in DEBUG mode)
|
![]() | SimulatePacketLoss |
Simulate packet loss by dropping random amout of packets. (Works only in DEBUG mode)
|
![]() | SimulationMaxLatency |
Maximum simulated latency
|
![]() | SimulationMinLatency |
Minimum simulated latency
|
![]() | SimulationPacketLossChance |
Chance of packet loss when simulation enabled. value in percents (1 - 100).
|
![]() | UnconnectedMessagesEnabled |
Enable messages receiving without connection. (with SendUnconnectedMessage method)
|
![]() | UnsyncedEvents |
Experimental feature. Events automatically will be called without PollEvents method from another thread
|
See Also