TD2: code cleanup in the client part.
[TD_SR.git] / TD2 / Main.java
diff --git a/TD2/Main.java b/TD2/Main.java
deleted file mode 100644 (file)
index e7bd963..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-import java.io.*;
-
-
-public class Main {
-
-       private static void main1() {
-               SocketClient client = new SocketClient();
-
-               try {
-                       client.sendMsg("Line 1 Line 2");
-                       String msg = client.receiveMsg();
-                       System.out.println(msg);
-               }
-               catch (Exception e) {
-                       System.err.println("Exception: " + e);
-               }
-               finally {
-                       client.closeRWIO();
-               }
-       }
-
-
-       public static void main (String[] args) {
-
-               try {
-                       SocketClient client = new SocketClient();
-                       ThreadClientSend thCS = new ThreadClientSend(client);
-                       thCS.setMsg("Line1 Line2");
-                       Thread thS = new Thread(thCS);
-                       Thread thR = new Thread(new ThreadClientReceive(client));
-                       thS.setName("thS");
-                       thS.start();
-                       thR.setName("thR");
-                       thR.start();
-               }
-               catch (Exception e) {
-                       System.err.println("Exception: " + e);
-               }
-               finally {
-                       client.closeRWIO();
-               }
-
-       }
-
-}