From 67c1615878056ecddd3d5dc54af0844869fe7a93 Mon Sep 17 00:00:00 2001 From: brutzman <brutzman@nps.edu> Date: Thu, 23 Aug 2018 09:16:02 -0700 Subject: [PATCH] better "hello i am here" statement --- CourseExamples/src/TcpExamples/TcpExample1Telnet.java | 2 ++ .../src/TcpExamples/TcpExample1TerminalLog.txt | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/CourseExamples/src/TcpExamples/TcpExample1Telnet.java b/CourseExamples/src/TcpExamples/TcpExample1Telnet.java index 0f4ea292d7..086db2556f 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 c08fc0262a..60b9a24afc 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... -- GitLab