diff --git a/projects/TcpExample3/Server/TcpServer/src/tcpserver/TcpServer.java b/projects/TcpExample3/Server/TcpServer/src/tcpserver/TcpServer.java index 537249d4e6973d57b0208535e3a8e4aafb720d7a..547ad93bd0929bc99b9794aa3eed02ff33f86108 100644 --- a/projects/TcpExample3/Server/TcpServer/src/tcpserver/TcpServer.java +++ b/projects/TcpExample3/Server/TcpServer/src/tcpserver/TcpServer.java @@ -38,7 +38,7 @@ public class TcpServer // Stop the program somewhere else. while(true) { - Socket clientConnection = serverSocket.accept(); + Socket clientConnection = serverSocket.accept(); // block until connected OutputStream os = clientConnection.getOutputStream(); PrintStream ps = new PrintStream(os); @@ -70,7 +70,7 @@ public class TcpServer // a while after the client has stopped needing this // connection. Close() explicitly ends the connection. ps.flush(); - clientConnection.close(); + clientConnection.close(); // like it or not, you're outta here! } } catch(Exception e)