|
@ -82,7 +82,7 @@ class TCPTimeCounterServer { |
|
|
try { |
|
|
try { |
|
|
// Antwort vom Server senden |
|
|
// Antwort vom Server senden |
|
|
String output = (Long.toString(counter) + " Zeit: " + System.currentTimeMillis() + " " |
|
|
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); |
|
|
System.out.println("Antwort des Servers: " + output); |
|
|
// Zeilenumbruch anfügen, da Client mit readLine auf komplette Zeile wartet |
|
|
// Zeilenumbruch anfügen, da Client mit readLine auf komplette Zeile wartet |
|
|
outToClient.writeBytes(output + '\n'); |
|
|
outToClient.writeBytes(output + '\n'); |
|
|