From 2ffbb3dc2fc5bcb1e3882a3606ca889b94dcfc28 Mon Sep 17 00:00:00 2001 From: brutzman <brutzman@DESKTOP-2S09UKA> Date: Tue, 21 Jul 2020 15:52:28 -0700 Subject: [PATCH] comments written in class session --- examples/src/TcpExamples/TcpExample1Telnet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/src/TcpExamples/TcpExample1Telnet.java b/examples/src/TcpExamples/TcpExample1Telnet.java index 407d778b63..fd500650c4 100644 --- a/examples/src/TcpExamples/TcpExample1Telnet.java +++ b/examples/src/TcpExamples/TcpExample1Telnet.java @@ -49,7 +49,9 @@ public class TcpExample1Telnet // The Socket object represents the connection between // the server and client, including a full duplex connection - try (Socket clientConnection = serverSocket.accept()) { + try (Socket clientConnection = serverSocket.accept()) // wait here for a client to connect + { + // OK we got something, time to respond! // Use Java io classes to write text (as opposed to // unknown bytes of some sort) to the client OutputStream os = clientConnection.getOutputStream(); -- GitLab