From 4cea41395f03317e3366ccab38bceb5ee0b430e0 Mon Sep 17 00:00:00 2001
From: adfis <adfis@DESKTOP-1KB21H8>
Date: Wed, 11 Aug 2021 08:36:50 -0700
Subject: [PATCH] Fisher Homework 2 - Final. Got it working with Justin M in
 class.

---
 .../homework2/Fisher/FisherClient.java                       | 5 +++--
 .../homework2/Fisher/FisherServer.java                       | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/assignments/src/MV3500Cohort2021JulySeptember/homework2/Fisher/FisherClient.java b/assignments/src/MV3500Cohort2021JulySeptember/homework2/Fisher/FisherClient.java
index 34978e03d2..24cb0b0ded 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 181e871821..ff7b272dc7 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
-- 
GitLab