Implementation TCP

This commit is contained in:
Nabil Moukhlis 2020-12-05 12:22:24 +01:00
parent 413bb6f896
commit 4c36d6fe24
8 changed files with 7 additions and 2 deletions

Binary file not shown.

View file

@ -186,11 +186,15 @@ public class ChatApp {
}
try {
Thread.sleep(2000);
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
app.modifierPseudo("Jean");
if(app.getMe().getPseudo()=="Marvel") {
TCPEchange.demarrerSession(app, app.actifUsers.getPseudoList("Doudou"));
}
//app.modifierPseudo("Jean");
}
@ -205,6 +209,7 @@ class Runner implements Runnable {
public void run() {
UDPEchange.ecouteUDP(app);
TCPEchange.ecouteTCP(app);
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.