Browse Source

Changed output of server name in TCPTimeCounterServer

master
Sebastian Rieger 7 years ago
parent
commit
71f001296b
  1. 2
      VerteilteSysteme-Examples/src/verteiltesysteme/aws/TCPTimeCounterServer.java

2
VerteilteSysteme-Examples/src/verteiltesysteme/aws/TCPTimeCounterServer.java

@ -82,7 +82,7 @@ class TCPTimeCounterServer {
try {
// Antwort vom Server senden
String output = (Long.toString(counter) + " Zeit: " + System.currentTimeMillis() + " "
+ df.format(new Date(System.currentTimeMillis())) + InetAddress.getLocalHost() + " " + InetAddress.getLocalHost().getHostName());
+ df.format(new Date(System.currentTimeMillis())) + " " + InetAddress.getLocalHost());
System.out.println("Antwort des Servers: " + output);
// Zeilenumbruch anfügen, da Client mit readLine auf komplette Zeile wartet
outToClient.writeBytes(output + '\n');

Loading…
Cancel
Save