Skip to content
Snippets Groups Projects
Commit 4cea4139 authored by adfis's avatar adfis
Browse files

Fisher Homework 2 - Final. Got it working with Justin M in class.

parent ad7be47b
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,8 @@ public class FisherClient { ...@@ -23,8 +23,8 @@ public class FisherClient {
// IPv6 String constant for localhost address, similarly IPv4 127.0.0.1 // 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"; 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 // Sub with someone's IP
//should work the same // Got it to work with McNeely in class
/** /**
* Program invocation, execution starts here * Program invocation, execution starts here
* @param args command-line arguments * @param args command-line arguments
...@@ -43,6 +43,7 @@ public class FisherClient { ...@@ -43,6 +43,7 @@ public class FisherClient {
try { try {
System.out.println("FisherClient creating socket..."); System.out.println("FisherClient creating socket...");
// Made a loop counter for client to stop after 10 pings with server
while (clientLoopCount <= 10) { while (clientLoopCount <= 10) {
// We request an IP to connect to ("localhost") and // We request an IP to connect to ("localhost") and
......
...@@ -56,6 +56,7 @@ public class FisherServer { ...@@ -56,6 +56,7 @@ public class FisherServer {
// Server is up and waiting (i.e. "blocked" or paused) // Server is up and waiting (i.e. "blocked" or paused)
// Loop, infinitely, waiting for client connections. // Loop, infinitely, waiting for client connections.
// Stop the program somewhere else. // Stop the program somewhere else.
// Made a loop counter for server to stop after 10 pings with client
while (serverLoopCount <= 10) { while (serverLoopCount <= 10) {
// block until connected to a client // block until connected to a client
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment