X-Git-Url: https://git.piment-noir.org/?p=TD_SR.git;a=blobdiff_plain;f=TD2%2FClientSimplifie.java;h=d247a9383cc852cc6094e63953740b1b9ec09ddf;hp=fd3cd7c9162dc3937d1a397b1c1cf0489ffe819e;hb=ce28a0211974450cf5df46e2065fb39350e029ec;hpb=7293fe6dc670d5164859159aab339fa3a4750773 diff --git a/TD2/ClientSimplifie.java b/TD2/ClientSimplifie.java index fd3cd7c..d247a93 100644 --- a/TD2/ClientSimplifie.java +++ b/TD2/ClientSimplifie.java @@ -27,14 +27,14 @@ public class ClientSimplifie { sock = new Socket(adresseIPServeur, portServeur); } catch (IOException e) { - System.out.println("IOException: " + e); + System.err.println("IOException: " + e); } InputStream IStream = null; try { IStream = sock.getInputStream(); } catch (IOException e) { - System.out.println("IOException: " + e); + System.err.println("IOException: " + e); } InputStreamReader IMesg = new InputStreamReader(IStream); lecture = new BufferedReader(IMesg); @@ -44,7 +44,7 @@ public class ClientSimplifie { OStream = sock.getOutputStream(); } catch (IOException e) { - System.out.println("IOException: " + e); + System.err.println("IOException: " + e); } ecriture = new PrintWriter(OStream); } @@ -69,7 +69,7 @@ public class ClientSimplifie { line = lecture.readLine(); } catch (IOException e) { - System.out.println("IOException: " + e); + System.err.println("IOException: " + e); } return line; } @@ -83,7 +83,7 @@ public class ClientSimplifie { lecture.close(); } catch (IOException e) { - System.out.println("IOException: " + e); + System.err.println("IOException: " + e); } }