Implementation TCP
This commit is contained in:
parent
413bb6f896
commit
4c36d6fe24
8 changed files with 7 additions and 2 deletions
Binary file not shown.
|
@ -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.
BIN
Implementation/src/RunnerTCPEcoute.class
Normal file
BIN
Implementation/src/RunnerTCPEcoute.class
Normal file
Binary file not shown.
BIN
Implementation/src/RunnerTCPEnvoi.class
Normal file
BIN
Implementation/src/RunnerTCPEnvoi.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
Implementation/src/TCPEchange.class
Normal file
BIN
Implementation/src/TCPEchange.class
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue