simple client-server connection in c