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

simple addition to output message that distinguishes client from server

parent 5bcf57a2
No related branches found
No related tags found
No related merge requests found
...@@ -48,8 +48,8 @@ public class TcpExample ...@@ -48,8 +48,8 @@ public class TcpExample
OutputStream os = clientConnection.getOutputStream(); OutputStream os = clientConnection.getOutputStream();
PrintStream ps = new PrintStream(os); PrintStream ps = new PrintStream(os);
ps.println("This response was written by server TcpExample1"); // to remote client ps.println("This client response was written by server TcpExample1"); // to remote client
System.out.println("This response was written by server TcpExample1"); // to server console System.out.println("This server response was written by server TcpExample1"); // to server console
// "flush()" in important in that it forces a write // "flush()" in important in that it forces a write
// across what is in fact a slow connection // across what is in fact a slow connection
......
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