Menu

Why I'm Moving My C++ Networking Library From C++26 to C++17
📰

Why I'm Moving My C++ Networking Library From C++26 to C++17

DEV Community: opensource·Pietro·about 6 hours ago
#flmWF1Yr
#devtoopensource#devto#dev#library#lightnerx
Long article (529 words) — no AI summary yet.
Reading 0:00
15s threshold

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…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.