@Override
        public void run() {
            try {
                BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
                String line = null;
                PrintWriter writer = new PrintWriter(socket.getOutputStream());
                while (reader != null && (line = reader.readLine()) != null && !line.equals("\n")) {
                    System.out.println(line);        
                    writer.write(line + "\r\n");
                    writer.flush();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }