1 unstable release

new 0.1.0 Dec 23, 2024

#22 in #multiplayer-game

MIT/Apache

110KB
2.5K SLoC

Renetcode

Latest version Documentation MIT Apache

Renetcode2 is a simple connection based client/server protocol, was developed be used in games with UDP in mind, but can be used with other transports methods. Implements the Netcode 1.a2 standard with renet2 extensions, available here and the original implementation in C is available in the netcode repository. See NETCODE_EXTENSIONS.md for the extensions implemented here.

Has the following feature:

  • Encrypted and signed packets
  • Secure client connection with connect tokens
  • Connection based protocol

and protects the game server from the following attacks:

  • Zombie clients
  • Man in the middle
  • DDoS amplification
  • Packet replay attacks

Usage

Check out the echo example to see an usage with UDP. Run the server with:

cargo run --example echo -- server 5000 

run the client with:

cargo run --example echo -- client 5000 my_username

Dependencies

~1MB
~16K SLoC