Skip to content
Snippets Groups Projects
Commit 71f00129 authored by Sebastian Rieger's avatar Sebastian Rieger
Browse files

Changed output of server name in TCPTimeCounterServer

parent 0e5a719b
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ class TCPTimeCounterServer { ...@@ -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 anfgen, da Client mit readLine auf komplette Zeile wartet // Zeilenumbruch anfgen, da Client mit readLine auf komplette Zeile wartet
outToClient.writeBytes(output + '\n'); outToClient.writeBytes(output + '\n');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment