When I started developing LightnerX, I decided to use C++26 modules.
At the time, it seemed like a reasonable choice. I was building a new library, so why not use the latest features available?
Well, there's one problem: not everyone is using C++26.
And when you're developing an open-source library that other people are supposed to integrate into their projects, compatibility matters.
What is LightnerX?
LightnerX is an open-source C++ networking library I've been developing for multiplayer games.
It originally started as part of my own game project, but eventually became a standalone library.
It uses Valve's GameNetworkingSockets as its transport layer and implements INER, a communication model I designed around four message types:
Intention: A client requests an action from the server.
Notification: A client sends information without expecting a response.
Event: The authoritative server communicates something to clients.
Response: The server reports the outcome of an intention.
Enter fullscreen…