X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TD2%2Fclient%2FMain.java;h=82fbfc975b563213df2c108f1bc0b23a43711fed;hb=b35728ff17726d147258d1413a6e3f4a22790377;hp=08300b7139c8f0b0236905b11561d8a19822862c;hpb=c4aaaecaa30716d0bc52f859f799880e5a37b027;p=TD_SR.git diff --git a/TD2/client/Main.java b/TD2/client/Main.java index 08300b7..82fbfc9 100644 --- a/TD2/client/Main.java +++ b/TD2/client/Main.java @@ -25,6 +25,7 @@ public class Main { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); } finally { client.closeRWIO(); @@ -34,6 +35,7 @@ public class Main { } catch (IOException e) { System.err.println("IOException: " + e); + e.printStackTrace(); } } } @@ -58,6 +60,7 @@ public class Main { } catch (Exception e) { System.err.println("Exception: " + e); + e.printStackTrace(); } finally { try { @@ -78,7 +81,7 @@ public class Main { Thread thR = null; try { - client = new SocketClient(); + client = new SocketClient(true); thS = new Thread(new ThreadClientoSend(client)); thR = new Thread(new ThreadClientoReceive(client)); thS.setName("thoS"); @@ -88,6 +91,7 @@ public class Main { } catch (Exception e) { System.err.println("Exception: " + e); + e.printStackTrace(); } finally { try {