The Server::exec() call starts the server loop, which runs until the server is shut down. More...
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:
Some examples of things that should NOT happen in this loop: