|
|
@ -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'); |
|
|
|