client-server app using TCP sockets for message transfer