All Projects → GlaireDaggers → Reliablenetcode.net

GlaireDaggers / Reliablenetcode.net

Licence: mit
A pure managed C# socket-agnostic reliability layer inspired by reliable.io and yojimbo

Programming Languages

csharp
926 projects

Projects that are alternatives of or similar to Reliablenetcode.net

Entitas Sync Framework
Networking framework for Entitas ECS. Targeted at turnbased games or other slow-paced genres.
Stars: ✭ 98 (-19.67%)
Mutual labels:  game-development, gamedev, networking
Game Networking Resources
A Curated List of Game Network Programming Resources
Stars: ✭ 4,208 (+3349.18%)
Mutual labels:  game-development, gamedev, networking
Lance
Multiplayer game server based on Node.JS
Stars: ✭ 1,161 (+851.64%)
Mutual labels:  game-development, gamedev, networking
Defold
Defold is a completely free to use game engine for development of desktop, mobile and web games.
Stars: ✭ 1,938 (+1488.52%)
Mutual labels:  game-development, gamedev
Godot tutorials
Code and examples for KidsCanCode Godot Tutorials.
Stars: ✭ 119 (-2.46%)
Mutual labels:  game-development, gamedev
Godot3 procgen demos
Exploring Procedural Generation algorithms in Godot
Stars: ✭ 85 (-30.33%)
Mutual labels:  game-development, gamedev
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+9488.52%)
Mutual labels:  game-development, gamedev
Love
LÖVE is an awesome 2D game framework for Lua.
Stars: ✭ 1,305 (+969.67%)
Mutual labels:  game-development, gamedev
Everpuzzle
Tetris Attack / Pokemon Puzzle style game written in Rust
Stars: ✭ 88 (-27.87%)
Mutual labels:  game-development, gamedev
Lambda Lantern
🧙 ‎‎ A 3D game about functional programming patterns. Uses PureScript Native, C++, and Panda3D.
Stars: ✭ 122 (+0%)
Mutual labels:  game-development, gamedev
Godot
Godot Engine – Multi-platform 2D and 3D game engine
Stars: ✭ 44,556 (+36421.31%)
Mutual labels:  game-development, gamedev
Sock.lua
A Lua networking library for LÖVE games.
Stars: ✭ 121 (-0.82%)
Mutual labels:  gamedev, networking
Duality
a 2D Game Development Framework
Stars: ✭ 1,231 (+909.02%)
Mutual labels:  game-development, gamedev
Ezpygame
An easier way to use pygame
Stars: ✭ 72 (-40.98%)
Mutual labels:  game-development, gamedev
Unrealclr
Unreal Engine 4 .NET 5 integration
Stars: ✭ 1,275 (+945.08%)
Mutual labels:  game-development, gamedev
Evennia
Python MUD/MUX/MUSH/MU* development system
Stars: ✭ 1,309 (+972.95%)
Mutual labels:  game-development, gamedev
Gamedev4noobs
Olá, sejam bem-vindos ao repositório _gamedev4noobs_ do Estúdio Vaca Roxa. O propósito desse repositório, além de contribuir para o projeto 4noobs, é ensinar o básico do desenvolvimento de jogos para iniciantes. Apresentando boas práticas e insumos para criar games incríveis.
Stars: ✭ 122 (+0%)
Mutual labels:  game-development, gamedev
Game Jam Tools Resources
A list of many game dev/jam tools & resources.
Stars: ✭ 63 (-48.36%)
Mutual labels:  game-development, gamedev
Netdynamics
Data-oriented networking playground for the reliable UDP transports
Stars: ✭ 65 (-46.72%)
Mutual labels:  gamedev, networking
Crown
The flexible game engine.
Stars: ✭ 1,320 (+981.97%)
Mutual labels:  game-development, gamedev

ReliableNetcode.NET

A pure managed C# socket agnostic reliability layer inspired by reliable.io and yojimbo.

ReliableNetcode.NET provides a simple and easy-to-use reliability layer designed for use in games built on unreliable UDP connections. It is a great fit for use with Netcode.IO.NET, my C# port of Glenn Fiedler's secure UDP communication protocol, but it can also be used with any other system you want.

Features

  • Multiple quality-of-service options (reliable, unreliable, and unreliable-ordered) for different use cases in a single API
  • Lightweight packet acking and packet resending
  • Supports messages up to about 16kB large using automatic message fragmentation and reassembly.
  • Simple congestion control changes the packet send rate according to round-trip-time.
  • GC-friendly for maximum performance.

Usage

All of the API is provided under the ReliableNetcode namespace.

Usage is really simple. First, to create a new instance of ReliableEndpoint:

var reliableEndpoint = new ReliableEndpoint();
reliableEndpoint.ReceiveCallback = ( buffer, size ) =>
{
	// this will be called when the endpoint extracts messages from received packets
	// buffer is byte[] and size is number of bytes in the buffer.
	// do not keep a reference to buffer as it will be pooled after this function returns
};
reliableEndpoint.TransmitCallback = ( buffer, size ) =>
{
	// this will be called when a datagram is ready to be sent across the network.
	// buffer is byte[] and size is number of bytes in the buffer
	// do not keep a reference to the buffer as it will be pooled after this function returns
};

To send a message, call ReliableEndpoint.SendMessage:

// Send a message through the qos channel
// messageBytes is a byte array, messageSize is number of bytes in the array, and qos type is either:
// QoSType.Reliable - message is guaranteed to arrive and in order.
// QoSType.Unreliable - message is not guaranteed delivery.
// QoSType.UnreliableOrdered - message is not guaranteed delivery, but received messages will be in order.
reliableEndpoint.SendMessage( messageBytes, messageSize, qosType );

When you receive a datagram from your socket implementation, use ReliableEndpoint.ReceivePacket:

// when you receive a datagram, pass the byte array and the number of bytes to ReceivePacket
// this will extract messages from the datagram and call your custom ReceiveCallback with any received messages.
reliableEndpoint.ReceivePacket( packetBytes, packetSize );

And, finally, make sure you call ReliableEndpoint.Update at regular and frequent intervals to update the internal buffers (you could run it on a separate network thread, from your game loop, or whatever you choose):

// update internal buffers
reliableEndpoint.Update();
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].