mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-05 18:01:12 +09:00
f0e5bb451533b416d1e216beea5afeb470cc2415
This PR fixes the IPv6 support *properly*. The two previous PRs, #123 and #126, both made a mess out of it: PR #123 implemented IPv6 by breaking non-dualstack IPv4 support. PR #126 fixed IPv4 support by breaking non-dualstack IPv6 support. This change fixes the mess entirely. IPv4, IPv6 and IPv6-dual-stack are now all independently supported and work as expected. Namely IPv4 can't receive IPv6, IPv6 can only receive IPv4 if NetPeerConfiguration.DualStack is set. You can still have an IPv6-only socket. I'll leave some review comments on the PR for less-immediately obvious changes.
Lidgren.Network 
Lidgren.Network is a networking library for .NET framework, which uses a single UDP socket to deliver a simple API for connecting a client to a server, reading and sending messages.
This has been updated for use with Unity3D, feel free to send PRs for other bugs fixes. To use this in Unity3D just enable the experimental .NET framework. you can do this in Edit -> Project Settings -> Player -> Other Settings -> Api Compatibility Level -> .NET 4.6
Platforms supported:
- Linux
- Mac
- OSX
Platforms/Toolchains which need testing:
- Android
- iPhone
- Xamarin
Tested in:
- Mono (alpha and beta)
- .NET 4.6
- Unity 2017.1 -> 2018.1.
Future Roadmap:
- Update to latest .NET 4.6
- Investigate officially supporting .NET Core.
- Improve test suite so that tests are run on all platforms we support, for each release.
Languages
C#
100%