Core Processing Loop
[AESOP Server Library]

The Server::exec() call starts the server loop, which runs until the server is shut down. More...

Collaboration diagram for Core Processing Loop:

The Server::exec() call starts the server loop, which runs until the server is shut down.

Anything happening here will have immediate (and painful) impact on all connected clients (lag times, etc.). So make sure only core tasks are here, and that they happen quickly.

Here is what should happen in the loop:

  1. handle any UDP updates from clients (this is quick game state updates).
  2. update all loaded maps (next time tic)
  3. send state update back to all interested clients (UDP)

Some examples of things that should NOT happen in this loop: