This commit is contained in:
@@ -7,11 +7,16 @@ public class Client {
|
||||
private final ClientConnexion clientConnection;
|
||||
|
||||
public Client(String address, short port) throws UnknownHostException, IOException {
|
||||
this.clientConnection = new ClientConnexion(address, port);
|
||||
this.clientConnection = new ClientConnexion(address, port, this);
|
||||
}
|
||||
|
||||
public void stop() {
|
||||
this.clientConnection.close();
|
||||
}
|
||||
|
||||
public void onDisconnect() {
|
||||
// do some stuff
|
||||
System.out.println("OSEKOUR");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user