In this assignment you will write a concurrent TCP server using fork(). The server will chose a random integer number between 1-100, and wait for the clients to send their guesses. Your server code should be able to run for different number of clients. (Your code should prompt the user to specify the number of clients on run-time.) As all clients send their guesses, the server finds out which one of the clients' guesses is -closest- to its own number. Finally, the server sends messages to each of the clients: a congratulations message to the winner client, and to other clients, a phrase indicating that they lost the competition.
Hints:
Below are some links that might be useful for those who would like to refresh their Operating Systems knowledge on the usage of fork():