a simple java socket server.