@@ -0,0 +1,654 @@
+package reseau_tp_1;%0A%0Aimport java.io.IOException;%0Aimport java.net.ServerSocket;%0Aimport java.net.Socket;%0A%0Apublic class ServerTCPEchoMulti %7B%0A%09private int port;%0A%09%0A%09public ServerTCPEchoMulti(int port) throws IOException%7B%0A%09%09this.port = port;%0A%09%09run();%0A%09%7D%0A%09%0A%09private void run() throws IOException%7B%0A%09%09Socket client;%0A%09%09ServerSocket server = new ServerSocket(this.port);%0A%09%09for(;;)%7B%0A%09%09%09client = server.accept();%0A%09%09%09ThreadServer thread = new ThreadServer(client);%0A%09%09%09thread.start();%0A%09%09%7D%0A%09%7D%0A%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09try %7B%0A%09%09%09ServerTCPEchoMulti server = new ServerTCPEchoMulti(5015);%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%0A%09%7D%0A%0A%7D%0A

Create ServerTCPEchoMulti.java