UDPGameNetworking

A general purpose UDP networking library, built in C++ with SDL3 and SDLNet

Joystick


After finishing my University Game Networking Project. I felt that the networking code could have been improved, and following the recent full release of SDL3, I decided to make a games networking library. I wanted to keep the advantages of my original code: fast messages sent over UDP, and value interpolation. However the code needed a full refactor to generalise the data streaming. I added all of these features, and made a small demo, which can be found in the GitHub repo.



UDPGameNetworking Demo

Main library features:

  • UDP Data streaming
  • Message acknowledgement option (TCP style)
  • Value interpolation option
  • Custom data transmission option


While the library works on its own, there is more I would like to do with this project. Most notably, I would love to make an engine specific-wrapper, as well as an extension, for Unity for example, to allow this library to be used within an engine without extensive setup. I would also love to provide better documentation, implement NAT traversal, and make a more extensive demo.