diff --git a/examples/src/TcpExamples/TcpExample1Telnet.java b/examples/src/TcpExamples/TcpExample1Telnet.java index 407d778b635222da96093df3931bb7f2cf86de5e..fd500650c4f4cb7c4669a7a68f421457f49f2926 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();