Move the server function to server.c and the client function to client.c