client server interaction? anyone know

hi there, i need help :frowning: im trying to produce a program that would do the following, but i dont know were to begin, any help/guide lines, please im need help asap,

One program is the main program, which fork/execs one referee process and
three x,y,z processes repectvley. It then waits until all four processes terminate. It should check that the command-line parameter that specifies the number of turns is legal and pass it to the referee process as a parameter of exec().

The parent program is the server which listens for choices from the x,y,z
program on a socket. The protocol used is as follow: when a process (x,y,z) is ready to make a choice it sends the string �READY� to the server. When all of them are ready, the server sends the processs a string �GO AHEAD� at roughly the same time. The responses from the players are read and their scores are calculated an updated(The choices and result of each game is displayed on the console). If correct response is not received from a player within two seconds, the server will resend the �READY� string to that process. If a correct response is again not received within 2 seconds after the second reminder, the other processes will be awarded the winning point for that game. This process should be repeated until the number of turns has been reached. After the final turn, the server send the �STOP� message to terminate the process and Display the final score.

thanks for ur help in advance :slight_smile: