Migrate everything on Gradle

Also added tasks to run the server & client separately
This commit is contained in:
Clément
2025-03-04 15:08:32 +01:00
parent 3115d397a4
commit e536a45266
37 changed files with 453 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
import java.net.InetSocketAddress;
import client.ClientConsole;
import server.Server;
public class ChatApp {
public static void main(String[] args) throws Exception {
Server server = new Server(6665);
ClientConsole client = new ClientConsole(new InetSocketAddress("localhost", 6665));
client.getClientInterface().SendCreateRoom("101");
client.joinThread();
System.out.println("Stopping server ...");
server.close();
System.out.println("Done !");
}
}