Implementation TCP
This commit is contained in:
förälder
d9173ea171
incheckning
f0bef07323
4 ändrade filer med 2 tillägg och 0 borttagningar
Binary file not shown.
Binär
Implementation/src/RunnerEcouteTCP.class
Normal file
Binär
Implementation/src/RunnerEcouteTCP.class
Normal file
Binary file not shown.
Binär
Implementation/src/RunnerEcouteUDP.class
Normal file
Binär
Implementation/src/RunnerEcouteUDP.class
Normal file
Binary file not shown.
|
|
@ -123,7 +123,9 @@ class RunnerTCPEcoute implements Runnable {
|
||||||
String line = in.readLine();
|
String line = in.readLine();
|
||||||
String msg = "";
|
String msg = "";
|
||||||
while (line != null) {
|
while (line != null) {
|
||||||
|
if(!msg.equals("")) {
|
||||||
System.out.println("Received: "+ msg);
|
System.out.println("Received: "+ msg);
|
||||||
|
}
|
||||||
/*if((line.split(" ")[0].equals("Destinataire"))) {
|
/*if((line.split(" ")[0].equals("Destinataire"))) {
|
||||||
if(msg != "") {
|
if(msg != "") {
|
||||||
MessageHorodate mh = MessageHorodate.stringToMessageHorodate(msg);
|
MessageHorodate mh = MessageHorodate.stringToMessageHorodate(msg);
|
||||||
|
|
|
||||||
Laddar…
Referens i nytt ärende