/Hazel-Networking

Hazel Networking is a low level networking library for C# providing connection orientated, message based communication via TCP, UDP and RUDP.

Primary LanguageC#MIT LicenseMIT

Hazel Networking is a low-level networking library for C# providing connection orientated, message based communication via TCP, UDP and RUDP.

Its aim is to provide a standardized interface for web communication so that using and switching between protocols is incredibly simple.

Hazel is going to be the basis of DarkRift 2 and it is being released completely open source so that members of the community can make use of it, improve it and help find any bugs before DarkRift 2 is released.

Hazel can be downloaded as a NuGet package here or you can get the latest build directly from the releases page here!


Features

  • TCP, UDP, Reliable UDP and (at some point) Web Sockets
  • Completely thread safe
  • All protocols are connection oriented (similar to TCP) and message based (similar to UDP)
  • Standardised interface so that all protocols can be used interchangeably with each other
  • IPv4 and IPv6 support
  • Automatic statistics about data passing in and out of connections
  • Designed to be as fast and leightweight as possible
  • Continued support as it's improved and maintained for DarkRift 2

Hazel is currently in beta; things should (but might not) work!


HTML documentation, tutorials and quickstarts are available on the DarkRift Website here; support is available through email or alternatively Hazel has a thread on the Unity forum where you'll also find updates and other news.

If you want to make improvements, do so! If you find bugs, raise issues!


Building Hazel

To build Hazel open solution file using your favourite C# IDE (I use Visual Studio 2015) and then build as you would any other project.