username change
This commit is contained in:
@@ -28,7 +28,10 @@ public class Client {
|
|||||||
|
|
||||||
public Client(InetSocketAddress serverAddress) throws SocketException {
|
public Client(InetSocketAddress serverAddress) throws SocketException {
|
||||||
this.connexion = new ClientConnexion(new DatagramSocket(), serverAddress);
|
this.connexion = new ClientConnexion(new DatagramSocket(), serverAddress);
|
||||||
login("Moi");
|
Scanner scanner = new Scanner(System.in);
|
||||||
|
System.out.println("Enter your pseudo:");
|
||||||
|
String pseudo = scanner.nextLine();
|
||||||
|
login(pseudo);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void visitMessage(String message){
|
public void visitMessage(String message){
|
||||||
|
|||||||
Reference in New Issue
Block a user