Simple client-server application based on Java sockets