11 releases

0.0.11 Feb 21, 2024
0.0.10 Nov 12, 2023
0.0.9 Jul 20, 2023
0.0.7 Mar 12, 2023
0.0.1 Jan 30, 2022

#895 in Network programming

Download history 195/week @ 2023-12-14 173/week @ 2023-12-21 199/week @ 2023-12-28 166/week @ 2024-01-04 178/week @ 2024-01-11 177/week @ 2024-01-18 261/week @ 2024-01-25 304/week @ 2024-02-01 216/week @ 2024-02-08 378/week @ 2024-02-15 535/week @ 2024-02-22 511/week @ 2024-02-29 351/week @ 2024-03-07 231/week @ 2024-03-14 255/week @ 2024-03-21 326/week @ 2024-03-28

1,197 downloads per month
Used in 4 crates (via renet)

MIT/Apache

99KB
2K SLoC

Renetcode

Latest version Documentation MIT Apache

Renetcode 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.02 standard, available here and the original implementation in C is available in the netcode repository.

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
~15K SLoC