TD2: Make the IHM client with one receive thread and one send thread.
[TD_SR.git] / TD2 / server / Main.java
index 4e3da51ddfa4dee353ec5d7598fcc2ecfbab834a..68ef78e817d11a1a1f3c698e011a8bfe626af630 100644 (file)
@@ -5,6 +5,7 @@ public class Main {
        public static void main(String[] args) {
                ServerSocket listenSocket = null;
                try {
+                       System.out.println("Demarrage du serveur sur le port " + Integer.parseInt(args[0]) + ", mise en attente de connexion :");
                        listenSocket = new ServerSocket(Integer.parseInt(args[0])); // port
                        while (true) { // le dispatcher est le thread qui execute main()
                                Socket clientSocket = listenSocket.accept();