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

whitespace

parent 8d34fadc
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ public class TcpExample1Telnet
// Use Java io classes to write text (as opposed to
// unknown bytes of some sort) to the client
OutputStream os = clientConnection.getOutputStream();
PrintStream ps = new PrintStream(os);
PrintStream ps = new PrintStream(os);
ps.println("This client response was written by server " + TcpExample1Telnet.class.getName()); // to remote client
System.out.println("This server response was written by server " + TcpExample1Telnet.class.getName()); // to server console
......
......@@ -81,8 +81,7 @@ public class TcpExample3Server {
if ( localAddress.getHostName().equals( localAddress.getHostAddress()) ||
remoteAddress.getHostName().equals(remoteAddress.getHostAddress()))
System.out.println(" note HostName matches address if host has no DNS name");
System.out.println(" note HostName matches address if host has no DNS name");
// Notice the use of flush() and try w/ resources. Without
// the try w/ resources the Socket object may stay open for
// a while after the client has stopped needing this
......
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