Server side of a simple Java Sockets application