From 8cb127219f6cda0f0415cc9c5e2b95682d146fb6 Mon Sep 17 00:00:00 2001 From: danielcain <danielcain@172.20.154.188> Date: Sun, 5 Aug 2018 08:36:22 -0700 Subject: [PATCH] Assignment 2 tcpClient and tcpServer with discussion (Javadocs) --- .../{ => Cain}/CainAssignment2.4Client.png | Bin .../{ => Cain}/CainAssignment2.4Server.png | Bin .../homework2/{ => Cain}/CainAssignment2_UML.pptx | Bin .../homework2/CainTcpClient.java | 9 ++++++++- .../homework2/CainTcpServer.java | 7 +++++++ 5 files changed, 15 insertions(+), 1 deletion(-) rename deliverables/src/MV3500Cohort2018JulySeptember/homework2/{ => Cain}/CainAssignment2.4Client.png (100%) rename deliverables/src/MV3500Cohort2018JulySeptember/homework2/{ => Cain}/CainAssignment2.4Server.png (100%) rename deliverables/src/MV3500Cohort2018JulySeptember/homework2/{ => Cain}/CainAssignment2_UML.pptx (100%) diff --git a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainAssignment2.4Client.png b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Cain/CainAssignment2.4Client.png similarity index 100% rename from deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainAssignment2.4Client.png rename to deliverables/src/MV3500Cohort2018JulySeptember/homework2/Cain/CainAssignment2.4Client.png diff --git a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainAssignment2.4Server.png b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Cain/CainAssignment2.4Server.png similarity index 100% rename from deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainAssignment2.4Server.png rename to deliverables/src/MV3500Cohort2018JulySeptember/homework2/Cain/CainAssignment2.4Server.png diff --git a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainAssignment2_UML.pptx b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/Cain/CainAssignment2_UML.pptx similarity index 100% rename from deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainAssignment2_UML.pptx rename to deliverables/src/MV3500Cohort2018JulySeptember/homework2/Cain/CainAssignment2_UML.pptx diff --git a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainTcpClient.java b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainTcpClient.java index 84fa0846ce..8b18631fcd 100644 --- a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainTcpClient.java +++ b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainTcpClient.java @@ -10,7 +10,14 @@ import java.net.*; public class CainTcpClient { public final static String LOCALHOST = "0:0:0:0:0:0:0:1"; // String constant, i.e. 127.0.0.1 - + +/* +* main class with client requesting to talk to server. After server accepts +* client's request to join on 2468, encoding enables both server and client +* to talk via messages below. A differentiating feature is to have the message +* show up on both the client and server output so the conversation between +* both makes sense and don't have to click back and forth to understand. +*/ public static void main(String[] args) { try { while (true) { diff --git a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainTcpServer.java b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainTcpServer.java index 4ef063425e..31b39704ed 100644 --- a/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainTcpServer.java +++ b/deliverables/src/MV3500Cohort2018JulySeptember/homework2/CainTcpServer.java @@ -12,6 +12,13 @@ import java.net.*; public class CainTcpServer { +/* +* main class with server listening for the client and will then stop blocking. +* After server accepts client's request to join on 2468, encoding enables both server and client +* to talk via messages below. A differentiating feature is to have the message +* show up on both the client and server output so the conversation between +* both makes sense and don't have to click back and forth to understand. +*/ public static void main(String[] args) { try -- GitLab