client/server application in C