reorganize ex6
This commit is contained in:
20
src/Ex6/main/App.java
Normal file
20
src/Ex6/main/App.java
Normal 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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user