Skip to main content

New answers tagged

1 vote

Where to initialize clients in C server?

The logic that you describe looks very much like session management, the glue that ties together network connection with a user. As it is a different concern than the ones handled in other modules, ...
Christophe's user avatar
  • 82.3k
2 votes

Where to initialize clients in C server?

Whenever one has a requirement which does not fit into the existing module structure of a system, I would recommend to start with a new module first. Said that, during the evolution of this new module,...
Doc Brown's user avatar
  • 221k
2 votes

Should I introduce a controller layer to separate networking from game/player logic in a C server project?

The closest I ever got to C is writing some procedural C++ in college, and I don't build games, so my answer isn't going to provide the exact structure; instead it will describe the approach I would ...
Greg Burghardt's user avatar
0 votes

Should I introduce a controller layer to separate networking from game/player logic in a C server project?

It doesn't need to be a single class in charge of those five steps. From what I understand, the uniqueness of the user name is related to the “global player list,” which makes me think there should be ...
Arseni Mourzenko's user avatar

Top 50 recent answers are included