Refactor to help further graphics

This commit is contained in:
Clément
2025-03-02 11:53:59 +01:00
parent 7adb581e33
commit e9f1feaaad
2 changed files with 15 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
import client.ClientConsole;
import java.net.InetSocketAddress;
public class ChatAppClient {
public static void main(String[] args) {
ClientConsole console = new ClientConsole(new InetSocketAddress("localhost", 6665));
try {
console.joinThread();
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("End !");
}
}

View File

@@ -23,17 +23,6 @@ public class Client {
login(pseudo); login(pseudo);
} }
public static void main(String[] args) {
ClientConsole console = new ClientConsole(new InetSocketAddress("localhost", 6665));
try {
console.joinThread();
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("End !");
}
public void close() { public void close() {
this.connexion.sendPacket(new DisconnectPacket("Leaving")); this.connexion.sendPacket(new DisconnectPacket("Leaving"));
this.connexion.close(); this.connexion.close();