diff --git a/CourseExamples/src/TcpExamples/TcpExample1Telnet.java b/CourseExamples/src/TcpExamples/TcpExample1Telnet.java index 0f4ea292d77a94b9ebb09c34bb6127d2c4ca8652..086db2556f50751dab63a5db39295f118a236fe6 100644 --- a/CourseExamples/src/TcpExamples/TcpExample1Telnet.java +++ b/CourseExamples/src/TcpExamples/TcpExample1Telnet.java @@ -34,6 +34,8 @@ public class TcpExample1Telnet { try { + System.out.println("TcpExample1Telnet has started and is waiting for a connection: telnet localhost 2317" ); + // The ServerSocket waits for a connection from a client. // It returns a Socket object when the connection occurs. ServerSocket serverSocket = new ServerSocket(2317); diff --git a/CourseExamples/src/TcpExamples/TcpExample1TerminalLog.txt b/CourseExamples/src/TcpExamples/TcpExample1TerminalLog.txt index c08fc0262aa3a63761ea97c2131579e56414475f..60b9a24afc2c252f4aff7aa66917480d44cd0752 100644 --- a/CourseExamples/src/TcpExamples/TcpExample1TerminalLog.txt +++ b/CourseExamples/src/TcpExamples/TcpExample1TerminalLog.txt @@ -1,3 +1,12 @@ +Program response: + +run: +TcpExample1Telnet has started and is waiting for a connection: telnet localhost 2317 +This server response was written by server TcpExample1 +BUILD SUCCESSFUL (total time: 13 seconds) + +Telnet window: + don@it154928 /cygdrive/c/Program Files/NetBeans 8.2 $ telnet localhost 2317 Trying ::1...