markiodev / Networker
Licence: mit
A simple to use TCP and UDP networking library for .NET. Compatible with Unity.
Stars: ✭ 408
Projects that are alternatives of or similar to Networker
Simpleunitytcp
🖧 Simple Unity Project to show how TCP communication are builded in C# without multi-threading or Unity network (Unet) involved.
Stars: ✭ 22 (-94.61%)
Mutual labels: unity, unity3d, networking, tcp, tcp-server
Ignorance
Ignorance utilizes the power of ENet to provide a reliable UDP networking transport for Mirror Networking.
Stars: ✭ 158 (-61.27%)
Mutual labels: unity, unity3d, networking, udp
Hp Socket
High Performance TCP/UDP/HTTP Communication Component
Stars: ✭ 4,420 (+983.33%)
Mutual labels: networking, tcp, udp, netcore
Mirror
#1 Open Source Unity Networking Library
Stars: ✭ 2,905 (+612.01%)
Mutual labels: unity, networking, tcp, udp
Raft.net
Implementation of RAFT distributed consensus algorithm among TCP Peers on .NET / .NETStandard / .NETCore / dotnet
Stars: ✭ 112 (-72.55%)
Mutual labels: netstandard, tcp, dotnetcore, netcore
Ecs
ECS for Unity with full game state automatic rollbacks
Stars: ✭ 151 (-62.99%)
Mutual labels: unity, unity3d, networking
Benchmarknet
Benchmark for testing the reliable UDP networking solutions
Stars: ✭ 206 (-49.51%)
Mutual labels: unity, networking, udp
Colyseus Unity3d
⚔ Colyseus Multiplayer SDK for Unity
Stars: ✭ 251 (-38.48%)
Mutual labels: unity, unity3d, networking
Goben
goben is a golang tool to measure TCP/UDP transport layer throughput between hosts.
Stars: ✭ 391 (-4.17%)
Mutual labels: networking, tcp, udp
Forgenetworkingremastered
In short, Forge Networking is a free and open source multiplayer game (multi-user) networking system that has a very good integration with the Unity game engine. You wanna make a multiplayer game or real time multi-user application? This is the library for you.
Stars: ✭ 1,338 (+227.94%)
Mutual labels: unity, unity3d, networking
DotNetGraph
Create GraphViz DOT graph with .NET / C#
Stars: ✭ 57 (-86.03%)
Mutual labels: dotnetcore, netcore, netstandard
ctsTraffic
ctsTraffic is a highly scalable client/server networking tool giving detailed performance and reliability analytics
Stars: ✭ 125 (-69.36%)
Mutual labels: tcp, udp, tcp-server
Cosmos.Identity
A Cosmos storage provider for ASP.NET Core Identity.
Stars: ✭ 26 (-93.63%)
Mutual labels: dotnetcore, netcore, netstandard
Openseeface
Robust realtime face and facial landmark tracking on CPU with Unity integration
Stars: ✭ 216 (-47.06%)
Mutual labels: unity, unity3d, udp
Ruffles
Lightweight and fully managed reliable UDP library.
Stars: ✭ 131 (-67.89%)
Mutual labels: unity, networking, udp
network
exomia/network is a wrapper library around System.Socket for easy and fast TCP/UDP client & server communication.
Stars: ✭ 18 (-95.59%)
Mutual labels: tcp, udp, tcp-server
Socketify
Raw TCP and UDP Sockets API on Desktop Browsers
Stars: ✭ 67 (-83.58%)
Mutual labels: tcp, udp, tcp-server
Valvesockets Csharp
Managed C# abstraction of GameNetworkingSockets library by Valve Software
Stars: ✭ 273 (-33.09%)
Mutual labels: unity, networking, udp
Message Io
Event-driven message library for building network applications easy and fast.
Stars: ✭ 321 (-21.32%)
Mutual labels: tcp, udp, tcp-server
Ubernet
Flexible networking library for Unity
Stars: ✭ 10 (-97.55%)
Mutual labels: unity, unity3d, networking
Networker
A simple to use TCP and UDP networking library for .NET, designed to be flexible, scalable and FAST.
Supported Frameworks
- .NET Standard 2.0
- .NET Framework 4.7+ for Unity
Features
- TCP
- UDP
- Socket pooling
- Object pooling
- Process thousands of requests per second
- Dependency Injection using Micrsoft.Extensions.DependencyInjection.ServiceCollection
- Logging using Microsoft.Extensions.Logging
- Works with Unity Game Engine (.NET Framework only)
Installation
NuGet Package Manager
Install-Package Networker
You must then install one of the following formatters
ZeroFormatter
Install-Package Networker.Extensions.ZeroFormatter
MessagePack
Install-Package Networker.Extensions.MessagePack
Protobuf-net
Install-Package Networker.Extensions.ProtoBufNet
JSON (Utf8Json)
Install-Package Networker.Extensions.Json
Tutorial - Creating a Basic Unity Multiplayer Game with Networker
Get started with this tutorial written by the library developer Mark Eastwood
Example
Creating a server is easy..
var server = new ServerBuilder()
.UseTcp(1000)
.UseUdp(5000)
.RegisterPacketHandlerModule<DefaultPacketHandlerModule>()
.RegisterPacketHandlerModule<ExamplePacketHandlerModule>()
.UseZeroFormatter()
.ConfigureLogging(loggingBuilder =>
{
loggingBuilder.AddConsole();
loggingBuilder.SetMinimumLevel(
LogLevel.Debug);
})
.Build();
server.Start();
You can handle a packet easily using dependency injection, logging and built-in deserialisation.
public class ChatPacketHandler : PacketHandlerBase<ChatPacket>
{
private readonly ILogger<ChatPacketHandler> _logger;
public ChatPacketHandler(ILogger<ChatPacketHandler> logger)
{
_logger = logger;
}
public override async Task Process(ChatPacket packet, IPacketContext packetContext)
{
_logger.LogDebug("I received the chat message: " + packet.Message);
packetContext.Sender.Send(new ChatPacket
{
Message = "Hey, I got your message!"
});
}
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].