From C file descriptor to socket?

Thanks everyone for replies. Sorry for late answer (Easter holidays and travelling...)

I should say I also want the clients to return data, in the form of keys pressed (the clients are the players in the game), in case that changes the optimal solution.