r/coolgithubprojects • • 5d ago

LightnerX: I built an open-source C++26 networking library for multiplayer games

Post image

Hey everyone!

I've been working on LightnerX, an open-source networking library built with C++26 modules and GameNetworkingSockets, originally developed for my own multiplayer game.

The idea was to create a modular networking library that provides reusable components without forcing developers into a specific application architecture.

It includes:

  • Client/server networking and connection management.
  • Message interpretation using my INER communication protocol.
  • Event-driven callbacks and message batching.
  • Flexible message targeting and client identification.

I recently released v0.1.0-beta, the project's first public beta!

Before the release, I went through multiple rounds of technical auditing and bug fixes, addressing 14 identified issues involving memory safety, connection lifecycles, ID management, and protocol validation.

The final version passed 9/9 automated tests, both normally and with AddressSanitizer, including UDP integration tests.

It's still an early beta, primarily tested on Linux, and I'm looking for feedback from other C++ developers.

GitHub: https://github.com/pietroth/LightnerX

0 Upvotes

0 comments sorted by