I have a server that needs to gather info from its clients. The info is a random number that I store into an array of frequency. The server should tell all clients the most frequent number, but every 30 sec or so. The clients that sent that number get disconnected and make space for new ones. So, new numbers are added in the array.
How do I make the server make the check every 30 sec and send the message?
I work in C under Unix, not C++.