From b420129eaa0ecc33f4ee60d0c1afdec773ccd7aa Mon Sep 17 00:00:00 2001 From: "william.oblak" <william.oblak@nps.edu> Date: Wed, 19 Apr 2023 11:23:54 -0700 Subject: [PATCH] Server and Client Talking --- .../homework1/Oblak/Assignment1Client.java | 4 ++-- .../homework1/Oblak/Assignmnet1Server.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assignments/src/MV3500Cohort2023MarchJune/homework1/Oblak/Assignment1Client.java b/assignments/src/MV3500Cohort2023MarchJune/homework1/Oblak/Assignment1Client.java index ce9d9b5907..d45e65a91d 100644 --- a/assignments/src/MV3500Cohort2023MarchJune/homework1/Oblak/Assignment1Client.java +++ b/assignments/src/MV3500Cohort2023MarchJune/homework1/Oblak/Assignment1Client.java @@ -81,7 +81,7 @@ public class Assignment1Client } catch (IOException | InterruptedException e) { - System.err.println("Problem with " + TcpExample3Client.class.getName() + " networking:"); // describe what is happening + System.err.println("Problem with " + Assignment1Client.class.getName() + " networking:"); // describe what is happening System.err.println("Error: " + e); // Provide more helpful information to user if exception occurs due to running twice at one time @@ -98,7 +98,7 @@ public class Assignment1Client // program exit: tell somebody about that happening. Likely cause: server drops connection. System.out.println(); - System.out.println(TcpExample3Client.class.getName() + " exit"); + System.out.println(Assignment1Client.class.getName() + " exit"); } } } diff --git a/assignments/src/MV3500Cohort2023MarchJune/homework1/Oblak/Assignmnet1Server.java b/assignments/src/MV3500Cohort2023MarchJune/homework1/Oblak/Assignmnet1Server.java index c900e282ce..18dfeffddd 100644 --- a/assignments/src/MV3500Cohort2023MarchJune/homework1/Oblak/Assignmnet1Server.java +++ b/assignments/src/MV3500Cohort2023MarchJune/homework1/Oblak/Assignmnet1Server.java @@ -83,7 +83,7 @@ public class Assignmnet1Server // Socket pair: (( /0:0:0:0:0:0:0:1, 2317 ), ( /0:0:0:0:0:0:0:1, 54881 )) // Why is the first IP/port the same, while the second set has different ports? - System.out.println(TcpExample3Server.class.getName() + " socket pair showing host name, address, port:"); + System.out.println(Assignmnet1Server.class.getName() + " socket pair showing host name, address, port:"); System.out.println(" (( " + localAddress.getHostName() + "=" + localAddress.getHostAddress() + ", " + localPort + " ), ( " + remoteAddress.getHostName() + "=" + remoteAddress.getHostAddress() + ", " + remotePort + " ))"); @@ -101,7 +101,7 @@ public class Assignmnet1Server } } } catch (IOException e) { - System.err.println("Problem with " + TcpExample3Server.class.getName() + " networking: " + e); + System.err.println("Problem with " + Assignmnet1Server.class.getName() + " networking: " + e); // Provide more helpful information to user if exception occurs due to running twice at one time if (e instanceof java.net.BindException) { -- GitLab