Skip to content
Snippets Groups Projects
Commit 2ffbb3dc authored by brutzman's avatar brutzman
Browse files

comments written in class session

parent fe5340f5
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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