Skip to content

Releases

LiteNetLib 2.1.5

Choose a tag to compare

@RevenantX RevenantX released this 26 Oct 15:21

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

Full Changelog: 2.1.4...2.1.5

LiteNetLib 2.1.4

Choose a tag to compare

@RevenantX RevenantX released this 19 May 08:05

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 after Stop call)

New Contributors

Full Changelog: 2.1.3...2.1.4

LiteNetLib 2.1.3

Choose a tag to compare

@RevenantX RevenantX released this 18 Apr 06:32

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

Full Changelog: 2.1.2...2.1.3

LiteNetLib 2.1.2

Choose a tag to compare

@RevenantX RevenantX released this 25 Mar 21:05

What's Changed

Full Changelog: 2.1.0...2.1.2

LiteNetLib 2.1.0

Choose a tag to compare

@RevenantX RevenantX released this 25 Mar 13:26

What's Changed

  • Add LiteConnectionRequest with Accept method that returns LiteNetPeer in case of using LiteNetManager
  • 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

Choose a tag to compare

@RevenantX RevenantX released this 14 Feb 11:18

This is mostly api updates

  • Move one of channeled Send method from LiteNetPeer to NetPeer
  • Move channeled SendToAll from LiteNetManager to NetManager
  • Add "new" NetPeer FirstPeer property to NetManager
  • Also add IEnumerable<NetPeer> to NetManager

Full Changelog: 2.0.0...2.0.2

LiteNetLib 2.0

Choose a tag to compare

@RevenantX RevenantX released this 02 Feb 10:09

What's Changed

  • Set C# language version to 8 and minimal .net version to netstandard2.1

  • Add simplified and faster LiteNetManager with LiteNetPeer which has 1 reliable-ordered channel, 1 reliable-unordered, 1 sequenced channel (and unreliable channel) which is enough for many cases. ReliableSequenced channel is same as reliable-ordered in LiteNetPeer (where old NetManager can have more than 1 channel per DeliveryMethod as before and fully support ReliableSequenced channels 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:

    • OnMessageDelivered
    • OnNtpResponse
    • OnPeerAddressChanged
  • Add reliable packet merging which drastically increase speed of ReliableOrdered and ReliableUnordered channels when sending many small packets

  • Fix .net8 receive bug #552

  • Add Configurable Resend packet delay for reliable packets (#567)

  • Remove not threadsafe ConnectedPeerList. Add GetConnectedPeers instead. 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

Choose a tag to compare

@RevenantX RevenantX released this 16 Dec 19:07

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

Full Changelog: 1.3.1...1.3.5

LiteNetLib 1.3.1

Choose a tag to compare

@RevenantX RevenantX released this 23 Nov 21:20

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 use MtuOverride). To enable MTU discovery set NetManager.MtuDiscovery to true
  • Add optional argument max processed events into PollEvents and ManualReceive (fix #528)
  • Add methods to serialize and deserialize array of nested INetSerializable into NetDataReader/Writer
  • Add GUID serialization to NetDataWriter/Reader and NetSerializer/NetPacketProcessor
  • Add SendUnconnectedMessage with ReadOnlySpan argument
  • Add NetDataWriter.AsReadOnlySpan()
  • Add GetRemainingBytesMemory method to NetDataReader. (fix #560)
  • Make PeerTimers and ElapsedMilliseconds as float (fix #521)
  • Improve NetDataWriter/Reader strings.
  • Add PutLargeString (with int size) and GetLargeString into NetDataWriter/Reader
  • Fix ObjectDisposedException with 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

Choose a tag to compare

@RevenantX RevenantX released this 22 Nov 22:58
  • 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 use MtuOverride). To enable MTU discovery set NetManager.MtuDiscovery to true
  • Add optional argument max processed events into PollEvents and ManualReceive (fix #528)
  • Add methods to serialize and deserialize array of nested INetSerializable into NetDataReader/Writer
  • Add GUID serialization to NetDataWriter/Reader and NetSerializer/NetPacketProcessor
  • Add SendUnconnectedMessage with ReadOnlySpan argument
  • Add NetDataWriter.AsReadOnlySpan()
  • Add GetRemainingBytesMemory method to NetDataReader. (fix #560)
  • Make PeerTimers and ElapsedMilliseconds as float (fix #521)
  • Improve NetDataWriter/Reader strings.
  • Add PutLargeString (with int size) and GetLargeString into NetDataWriter/Reader
  • Fix ObjectDisposedException with 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