LiteNetLib 1.2.0
- Derive NetPeer from IPEndPoint (so to get EndPoint of peer you just use peer instead of peer.RemoteEndPoint)
- Add .NET8+ garbage less
Socket.Send/Socket.Receive - Add .NET5+ Member Trimming Annotations
- Add
NetDataReader.Get(out ...)methods - Add
NetManager.SendToAllwithReadOnlySpan - Add
NetDataReader.GetRemainingBytesSpan() - Add optional
NetManager.DontRouteoption for sockets (for specific cases) - Sort Network Interfaces to prefer Wifi over Cellular (local ip)
- Process shutdown error (for specific cases)
- Fix
AllowPeerAddressChangeworks only if you implementIPeerAddressChangedListener(now it works without implementing) - Better protections for broken data (fixes some critical cases that can "crash" server)
- Overall optimizations
For installation in typical .NET project use nuget package
For Unity use sources zip and copy directory LiteNetLib to your project