diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework1/Schnitzler/SchnitzlerUnicastNetworking.java b/assignments/src/MV3500Cohort2024JulySeptember/homework1/Schnitzler/SchnitzlerUnicastNetworking.java index 7bdf6b26638e408a8ddb55443d56a53d789cfbbc..52405cbcb2c7cf405be4c8e53f4fde13de6cf6db 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework1/Schnitzler/SchnitzlerUnicastNetworking.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework1/Schnitzler/SchnitzlerUnicastNetworking.java @@ -21,6 +21,7 @@ public class SchnitzlerUnicastNetworking { } /** + * Program invocation, execution starts here * @param args the command line arguments */ public static void main(String[] args) { diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Schnitzler/SchnitzlerClient.java b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Schnitzler/SchnitzlerClient.java index d1d3b1c85d67098d7be44e3cf1b99a95bcdd751e..7e97435c1d600118d3afa6259fb34ee10b9290b1 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Schnitzler/SchnitzlerClient.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Schnitzler/SchnitzlerClient.java @@ -13,11 +13,22 @@ import java.util.Scanner; * @author simonschnitzler */ public class SchnitzlerClient { + + /** Default constructor */ + public SchnitzlerClient(){ + // default constructor + } + + /** IPv6 String constant for localhost address, similarly IPv4 127.0.0.1 + * @see <a href="https://en.wikipedia.org/wiki/localhost" target="_blank">https://en.wikipedia.org/wiki/localhost</a> + * @see <a href="https://en.wikipedia.org/wiki/IPv6_address" target="_blank">https://en.wikipedia.org/wiki/IPv6_address</a> + */ public final static String LOCALHOST = "0:0:0:0:0:0:0:1"; //Local host /** + * Program invocation, execution starts here * @param args the command line arguments - * @throws java.lang.Exception + * @throws java.lang.Exception if connection failed */ public static void main(String[] args) throws Exception { Socket socket = new Socket(LOCALHOST, 2317); diff --git a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Schnitzler/SchnitzlerServer.java b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Schnitzler/SchnitzlerServer.java index 47cc363f2d1b7e8e2cea4178dc612913d39ddedb..9b1e5afc7b1de845e0c71b8b9accec3eea4faed4 100644 --- a/assignments/src/MV3500Cohort2024JulySeptember/homework2/Schnitzler/SchnitzlerServer.java +++ b/assignments/src/MV3500Cohort2024JulySeptember/homework2/Schnitzler/SchnitzlerServer.java @@ -16,10 +16,18 @@ import java.util.Set; * @author simonschnitzler */ public class SchnitzlerServer { + + /** Default constructor */ + public SchnitzlerServer(){ + // default constructor + } + // the set clientWriters contains form all sockets the active PrintStream private static Set<PrintWriter> clientWriters = new HashSet<>(); /** + * Program invocation, execution starts here + * * @param args the command line arguments */ public static void main(String[] args) {