diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2Client.java b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2Client.java index de94d5fb361ce77f084802c845fed37e3c512050..110b07a34a6b10224abfb7e64bbb038d082f6984 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2Client.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2Client.java @@ -9,12 +9,12 @@ import java.util.Scanner; //import java.time.LocalTime; // conversion? /** - * This client program establishes a socket connection to the {@link TcpExample4DispatchServer}, - * then checks how long it takes to read the single line it expects as a server response. + * This client program establishes a socket connection to the {@link LennonHW2DispatchServer}, + * then plays a random number guessing game. * No fancy footwork here, it is pretty simple and similar to {@link TcpExample3Client}. * - * @see TcpExample4DispatchServer - * @see TcpExample4HandlerThread + * see TcpExample4DispatchServer + * see TcpExample4HandlerThread * * @see <a href="../../../src/TcpExamples/TcpExample4TerminalLog.txt" target="blank">TcpExample4TerminalLog.txt</a> * @see <a href="../../../src/TcpExamples/TcpExample4SequenceDiagram.png" target="blank">TcpExample4SequenceDiagram.png</a> diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2DispatchServer.java b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2DispatchServer.java index 4e30d61d856dda68a310bddee84d041f1d3ec33c..443e7322f9552ee7a575279181c773afb2985869 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2DispatchServer.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2DispatchServer.java @@ -8,7 +8,7 @@ import java.net.*; * new thread to handle multiple incoming socket connections, one after another, all running in parallel. * This advanced technique is often used in high=performance high=capacity server programs. * - * @see TcpExample4Client + * @see LennonHW2Client * @see LennonHW2HandlerThread * * @see <a href="../../../src/TcpExamples/TcpExample4TerminalLog.txt" target="blank">TcpExample4TerminalLog.txt</a> diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2HandlerThread.java b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2HandlerThread.java index 6ca17564c47850c30309094eafb714e80763c370..cce06e30b1f2cc41f8dd846f602ee6c9d0c8a0ad 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2HandlerThread.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Lennon/LennonHW2HandlerThread.java @@ -8,7 +8,7 @@ import java.util.Random; /** * <p> - * This utility class supports the {@link TcpExample4DispatchServer} program, + * This utility class supports the {@link LennonHW2DispatchServer} program, * handling all programming logic needed for a new socket connection * to run in a thread of its own. This is the server * portion as well, so we artificially invent what happens @@ -18,8 +18,8 @@ import java.util.Random; * Warning: do not run this class! It is created and used automatically by {@link TcpExample4DispatchServer} at run time. * </p> * - * @see TcpExample4Client - * @see TcpExample4DispatchServer + * see TcpExample4Client + * see TcpExample4DispatchServer * * @see <a href="../../../src/TcpExamples/TcpExample4TerminalLog.txt" target="blank">TcpExample4TerminalLog.txt</a> * @see <a href="../../../src/TcpExamples/TcpExample4SequenceDiagram.png" target="blank">TcpExample4SequenceDiagram.png</a> @@ -56,7 +56,7 @@ public class LennonHW2HandlerThread extends Thread /** Handles one connection. We add an artificial slowness * to handling the connection with a sleep(). This means - * the client won't see a server connection response for ten seconds (default). + * the client won't see a server connection response for 0.5 seconds. */ // @overriding run() method in Java Thread class is deliberate @Override