Skip to content
Snippets Groups Projects
Commit 6f1ac87f authored by Brutzman, Don's avatar Brutzman, Don
Browse files

improved diagnostics

parent 6920bd4c
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,8 @@ public class TcpExample
OutputStream os = clientConnection.getOutputStream();
PrintStream ps = new PrintStream(os);
ps.println("This was written by the server");
ps.println("This response was written by server TcpExample1"); // to remote client
System.out.println("This response was written by server TcpExample1"); // to server console
// "flush()" in important in that it forces a write
// across what is in fact a slow connection
......
......@@ -42,7 +42,8 @@ public class TcpExample2
OutputStream os = clientConnection.getOutputStream();
PrintStream ps = new PrintStream(os);
ps.println("This was written by the server");
ps.println("This response was written by server TcpExample2"); // to remote client
System.out.println("This response was written by server TcpExample2"); // to server console
// Print some information locally about the Socket
// connection. This includes the port and IP numbers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment