15 c 2003 - Raphaël Marvie Code client (ii) public void run (String msg) throws Exception { BufferedReader in = new BufferedReader (new InputStreamReader(this.sock.getInputStream ())); DataOutputStream out = new DataOutputStream (this.sock.getOutputStream ()); out.writeBytes (msg + \n ) ; String res = in.readLine () ; System.out.println ( Server replied: + res) ; this.sock.close(); }
{}