diff --git a/assignments/src/MV3500Cohort2019JulySeptember/homework1/BoronTcpExample1Telnet1.java b/assignments/src/MV3500Cohort2019JulySeptember/homework1/BoronTcpExample1Telnet1.java index 4ad699e106571eb1e89cc0a92adea6cbc892e2be..9d3bbdb3dff6be1f4579c5a1563c428cd065203c 100644 --- a/assignments/src/MV3500Cohort2019JulySeptember/homework1/BoronTcpExample1Telnet1.java +++ b/assignments/src/MV3500Cohort2019JulySeptember/homework1/BoronTcpExample1Telnet1.java @@ -53,11 +53,13 @@ public class BoronTcpExample1Telnet1 OutputStream os = clientConnection.getOutputStream(); PrintStream ps = new PrintStream(os); + Timestamp timestamp = new Timestamp(System.currentTimeMillis()); + ps.println("This client response was written by Capt. Jonathan Boron."); // to remote clientnc - ps.println("Connection achieved at time: " + new Timestamp(System.currentTimeMillis())); + ps.println("Connection achieved at time: " + timestamp); System.out.println("This server response was written by Capt. Jonathan Boron."); // to server console - System.out.println("Connection achieved at time: " + new Timestamp(System.currentTimeMillis())); + System.out.println("Connection achieved at time: " + timestamp); // "flush()" in important in that it forces a write // across what is in fact a slow connection ps.flush();