Skip to content
Snippets Groups Projects
Commit 71451fcb authored by bkii's avatar bkii
Browse files

homework 1, changes Bert

parent f27207ba
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,11 @@ public class KNOBELOCH_TcpExample1Telnet
OutputStream os = clientConnection.getOutputStream();
PrintStream ps = new PrintStream(os);
ps.println("This client response was written by server TcpExample1."); // to remote clientnc
System.out.println("This server response was written by server TcpExample1."); // to server console
//ps.println("This client response was written by server TcpExample1."); // to remote clientnc
ps.println("42");
//System.out.println("This server response was written by server TcpExample1."); // to server console
System.out.println("42 IS WRONG! CHUCK NORRIS IS ALWAYS RIGHT!");
// "flush()" in important in that it forces a write
// 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