It seems redundant, and a lot of time wasted to have the server listen for new clients in its main loop:
while(1)
{
listenForNewClients(); //this is the one!
HandleIncomingPackets();
HandleOutgoingPackets();
}
I'd want the server to be as fast as possible while processing game data and sending out/receiving information about other players. If I have to wait for a client to be introduced, it'll waste time.
Is there any way I can update the database by checking the "isLoggedIn" flag through some other way of login? perhaps through my website?












