diff --git a/assignments/src/MV3500Cohort2021JulySeptember/homework2/Fisher/FisherClient.java b/assignments/src/MV3500Cohort2021JulySeptember/homework2/Fisher/FisherClient.java index 34978e03d26a1d18f00d2e5dc4ba05ff5c76b0b3..24cb0b0ded0f5e1083132035e0e98b4be6210ec6 100644 --- a/assignments/src/MV3500Cohort2021JulySeptember/homework2/Fisher/FisherClient.java +++ b/assignments/src/MV3500Cohort2021JulySeptember/homework2/Fisher/FisherClient.java @@ -23,8 +23,8 @@ public class FisherClient { // IPv6 String constant for localhost address, similarly IPv4 127.0.0.1 public final static String LOCALHOST = "172.20.145.10"; //"0:0:0:0:0:0:0:1"; - // if we sub localhost with someone's IP this - //should work the same + // Sub with someone's IP + // Got it to work with McNeely in class /** * Program invocation, execution starts here * @param args command-line arguments @@ -43,6 +43,7 @@ public class FisherClient { try { System.out.println("FisherClient creating socket..."); + // Made a loop counter for client to stop after 10 pings with server while (clientLoopCount <= 10) { // We request an IP to connect to ("localhost") and diff --git a/assignments/src/MV3500Cohort2021JulySeptember/homework2/Fisher/FisherServer.java b/assignments/src/MV3500Cohort2021JulySeptember/homework2/Fisher/FisherServer.java index 181e871821f6b4cfb19d81fdb57ec2bcef0c2fb9..ff7b272dc732d54325a8d0a525a8ca37f0ebcd02 100644 --- a/assignments/src/MV3500Cohort2021JulySeptember/homework2/Fisher/FisherServer.java +++ b/assignments/src/MV3500Cohort2021JulySeptember/homework2/Fisher/FisherServer.java @@ -56,6 +56,7 @@ public class FisherServer { // Server is up and waiting (i.e. "blocked" or paused) // Loop, infinitely, waiting for client connections. // Stop the program somewhere else. + // Made a loop counter for server to stop after 10 pings with client while (serverLoopCount <= 10) { // block until connected to a client