This commit is contained in:
17
app/src/main/java/network/client/Client.java
Normal file
17
app/src/main/java/network/client/Client.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package network.client;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
public class Client {
|
||||
private final ClientConnexion clientConnection;
|
||||
|
||||
public Client(String address, short port) throws UnknownHostException, IOException {
|
||||
this.clientConnection = new ClientConnexion(address, port);
|
||||
}
|
||||
|
||||
public void stop() {
|
||||
this.clientConnection.close();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user