* Before, we always used telnet to connect to the server. Here we are now writing our own program to do the connection.
*
* As you will see, when we run this after we start the server we will see the same string telnet printed, sent by the server. The output at the server will show different socket pairs for each time we ran it.
*
* @author mcgredo cd /cygdrive/e/Documents/NPS/MV3500_Internetwork_Communications/NetworkedGraphicsMV3500/deliverables/build/classes/MV3500Cohort2018JulySeptember/homework2/Furr
* This client will connect to a server, and once connected ask for user input to send to a server.
* Once it gets a message with "bye" in it, it terminates the connection.
*
* Folder for my computer to use terminal control is below.
* cd /cygdrive/e/Documents/NPS/MV3500_Internetwork_Communications/NetworkedGraphicsMV3500/deliverables/build/classes/MV3500Cohort2018JulySeptember/homework2/Furr
*/
publicclassFurrTcpClient{
...
...
@@ -19,48 +19,48 @@ public class FurrTcpClient {
booleanopenConnection=true;
try{
while(openConnection){
System.out.println("The Client is creating socket and it's awesome...");
System.out.println("The Client is creating socket and it's awesome...");//why wouldn't a connection be awesome?
// We request an IP to connect to ("localhost") and
// port number at that IP (2317). This establishes
// a connection to that IP in the form of the Socket
// object; the server uses a ServerSocket to wait for