reorganize ex6

This commit is contained in:
2026-02-07 12:57:27 +01:00
parent a425be712e
commit ef4fdc1c9c
6 changed files with 27 additions and 9 deletions

20
src/Ex6/main/App.java Normal file
View File

@@ -0,0 +1,20 @@
package Ex6.main;
import java.io.IOException;
import java.net.Socket;
public class App {
/**
* Run this to launch the server and immediatly connect to it with a CLI Client.
*/
public static void main(String[] args) throws IOException {
final int port = 6666;
System.out.println("Launching server ...");
Serveur serveur = new Serveur(port);
System.out.println("Connecting client1 ...");
Client client1 = new Client(new Socket("localhost", port));
}
}