Repository navigation
Releases
LiteNetLib 2.1.5
What's Changed
- Add ReadOnlySpan overloads to Reject/Disconnect methods by @KingofBeast in #611
- add macOS support for NativeSocket by @Molth in #615
- Mark library as AOT compatible by @ds5678 in #617
- Bounds-check NetDataReader Peek methods by @armadavalor in #618
- GetPacketsCountInReliableQueue return 0 if channels is null. Fix for #612
- Fixed "ManualReceive stalls on empty datagrams and on packets dropped by a packet layer" #616
New Contributors
- @KingofBeast made their first contribution in #611
- @Molth made their first contribution in #615
- @ds5678 made their first contribution in #617
- @armadavalor made their first contribution in #618
Full Changelog: 2.1.4...2.1.5
LiteNetLib 2.1.4
What's Changed
- Return NetManager.SendToAll overloads with ReadOnlySpan support by @DoctorGester in #608
- Disable (if enabled) latency simulation for disconnect packets when calling
LiteNetManager.Stop(fixes missing disconnect packets afterStopcall)
New Contributors
- @DoctorGester made their first contribution in #608
Full Changelog: 2.1.3...2.1.4
LiteNetLib 2.1.3
What's Changed
- Update methods to stay more consistent with rest of API by @Lacyway in #604
- fix(LiteNetPeer): get packets count in reliable unordered channel by @stiefeljackal in #607
- Fix manual mode on MacOS by adding
LiteNetManager.MaxPacketPerManualReceive
New Contributors
- @stiefeljackal made their first contribution in #607
Full Changelog: 2.1.2...2.1.3
LiteNetLib 2.1.2
LiteNetLib 2.1.0
What's Changed
- Add LiteConnectionRequest with
Acceptmethod that returnsLiteNetPeerin case of usingLiteNetManager - Add bounds checks and safer reading to NetDataReader by @FUTURE-SL in #590
- Update NetDataReader, NetDataWriter & FastBitConverter + add docs by @Lacyway in #594
- Add automated NuGet publishing workflow by @roku674 in #592
- Remove allocations from Put IPEndPoint by @Lacyway in #595
- Add/update documentation by @Lacyway in #596
- Improve fragment reassembly by @FUTURE-SL in #591
- Use packet.Size for bounds check by @FUTURE-SL in #597
- Reader + Writer update by @FUTURE-SL in #598
New Contributors
Full Changelog: 2.0.2...2.1.0
LiteNetLib 2.0.2
This is mostly api updates
- Move one of channeled
Sendmethod fromLiteNetPeertoNetPeer - Move channeled
SendToAllfromLiteNetManagertoNetManager - Add "new"
NetPeer FirstPeerproperty toNetManager - Also add
IEnumerable<NetPeer>toNetManager
Full Changelog: 2.0.0...2.0.2
LiteNetLib 2.0
What's Changed
-
Set C# language version to 8 and minimal .net version to netstandard2.1
-
Add simplified and faster
LiteNetManagerwithLiteNetPeerwhich has 1reliable-orderedchannel, 1reliable-unordered, 1sequencedchannel (andunreliablechannel) which is enough for many cases.ReliableSequencedchannel is same asreliable-orderedinLiteNetPeer(where oldNetManagercan have more than 1 channel perDeliveryMethodas before and fully supportReliableSequencedchannels for very specific use-cases) -
Ntp requests now only supported in full
NetManager -
Merge additional listener interfaces into INetEventListener with default empty implementation. Merged methods:
OnMessageDeliveredOnNtpResponseOnPeerAddressChanged
-
Add reliable packet merging which drastically increase speed of
ReliableOrderedandReliableUnorderedchannels when sending many small packets -
Fix .net8 receive bug #552
-
Add Configurable Resend packet delay for reliable packets (#567)
-
Remove not threadsafe
ConnectedPeerList. AddGetConnectedPeersinstead. Fix #584 -
Increment packet loss in reliable channel only when there is pending packets. Fix #564
-
Optimizations and some additional protections
-
Simplify code using Spans and remove old #ifdefs for older .net versions
Full Changelog: 1.3.5...2.0.0
LiteNetLib 1.3.5
What's Changed
- Fixed typos in readme by @AldeRoberge in #576
- Fix NativeAddress update bug in FinishEndPointChange method by @Niaobu in #578
- Support for connecting and writing span of bytes by @popcron in #577
- Feature: Allow simulating outbound networking by @Niaobu in #579
- Add incoming fragments limit
- Prevent unnecessary allocations in
NetManager.ProcessNtpRequests - Drop net471 in nuget packet (but it will work from source)
- Some little additions to NetDataWriter/NetDataReader
New Contributors
- @AldeRoberge made their first contribution in #576
- @Niaobu made their first contribution in #578
Full Changelog: 1.3.1...1.3.5
LiteNetLib 1.3.1
Changes in 1.3.1
- Fix crash when sending Merged byte without data
- Add .net8 and .net7 targets (and nuget variants) to support specific features
- Remove .net5 target because EOL. You can use .NET Standard for .net5.
Changes in 1.3.0
- Stop running NetManagers in Unity in OnApplicationQuit (when using library source code)
- Disable MTU discovery by default because some routers can break detection and connection in result. Remove
UseSafeMtu(for this just useMtuOverride). To enable MTU discovery setNetManager.MtuDiscoverytotrue - Add optional argument max processed events into
PollEventsandManualReceive(fix #528) - Add methods to serialize and deserialize array of nested
INetSerializableintoNetDataReader/Writer - Add
GUIDserialization toNetDataWriter/ReaderandNetSerializer/NetPacketProcessor - Add
SendUnconnectedMessagewithReadOnlySpanargument - Add
NetDataWriter.AsReadOnlySpan() - Add
GetRemainingBytesMemorymethod toNetDataReader.(fix #560) - Make PeerTimers and ElapsedMilliseconds as float (fix #521)
- Improve
NetDataWriter/Readerstrings. - Add
PutLargeString(with int size) andGetLargeStringintoNetDataWriter/Reader - Fix
ObjectDisposedExceptionwith Native Sockets (fix #542) - Lock unreliable channel only if there is pending packets
- Unreliable packets optimization
For installation in typical .NET project use nuget package
For Unity use sources zip and copy directory LiteNetLib to your project
LiteNetLib 1.3.0
- Stop running NetManagers in Unity in OnApplicationQuit (when using library source code)
- Disable MTU discovery by default because some routers can break detection and connection in result. Remove
UseSafeMtu(for this just useMtuOverride). To enable MTU discovery setNetManager.MtuDiscoverytotrue - Add optional argument max processed events into
PollEventsandManualReceive(fix #528) - Add methods to serialize and deserialize array of nested
INetSerializableintoNetDataReader/Writer - Add
GUIDserialization toNetDataWriter/ReaderandNetSerializer/NetPacketProcessor - Add
SendUnconnectedMessagewithReadOnlySpanargument - Add
NetDataWriter.AsReadOnlySpan() - Add
GetRemainingBytesMemorymethod toNetDataReader.(fix #560) - Make PeerTimers and ElapsedMilliseconds as float (fix #521)
- Improve
NetDataWriter/Readerstrings. - Add
PutLargeString(with int size) andGetLargeStringintoNetDataWriter/Reader - Fix
ObjectDisposedExceptionwith Native Sockets (fix #542) - Lock unreliable channel only if there is pending packets
- Unreliable packets optimization
For installation in typical .NET project use nuget package
For Unity use sources zip and copy directory LiteNetLib to your project