diff --git a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/FurrTcpClient.java b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/FurrTcpClient.java index 31cba45f8da9a170365599c6b36ffdb0c3e5349b..3dcd83e8e577ad6e9d7eb10257948eab7fc32725 100644 --- a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/FurrTcpClient.java +++ b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/FurrTcpClient.java @@ -42,7 +42,7 @@ public class FurrTcpClient { int x = 0; //for testing I have a iterator to close connection, if I get netbeans //up and running will try with the open connection condition. - while (x < 10)//openConnection) + while (openConnection) //x<10 will also work. { System.out.println("\nType something to the server: "); Scanner in = new Scanner(System.in); // gets input from console/output window diff --git a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/FurrTcpServer.java b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/FurrTcpServer.java index 0e3ed9bcb07fbd335a87f53cd6589cd764077fa7..255ab03e5e2b8a6941a327131e858502fc55b3ae 100644 --- a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/FurrTcpServer.java +++ b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/FurrTcpServer.java @@ -85,10 +85,10 @@ public class FurrTcpServer { { //need check to see if - System.out.println("\n" + line); - ps.println("\tThe SERVER has responded with: " + responses[index]); - System.out.println("Server has sent: " + responses[index]); - index++; + System.out.println("\n" + line); //prints out what is recieved from client + ps.println("\tThe SERVER has responded with: " + responses[index]); //sends the prewritten response + System.out.println("Server has sent: " + responses[index]); //tells server user what was sent + index++; //goes to next response. // Notice the use of flush() and close(). Without // the close() to Socket object may stay open for diff --git a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/Furr_Homework_2_Screenshots.pptx b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/Furr_Homework_2_Screenshots.pptx new file mode 100644 index 0000000000000000000000000000000000000000..bad267752bc02f53e66e16a98a061641048042d7 Binary files /dev/null and b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Furr/Furr_Homework_2_Screenshots.pptx differ