Skip to content
Snippets Groups Projects
Commit 854bc850 authored by Simon32220's avatar Simon32220
Browse files

Adding missing Javadoc

parent 1645026d
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ public class SchnitzlerUnicastNetworking { ...@@ -21,6 +21,7 @@ public class SchnitzlerUnicastNetworking {
} }
/** /**
* Program invocation, execution starts here
* @param args the command line arguments * @param args the command line arguments
*/ */
public static void main(String[] args) { public static void main(String[] args) {
......
...@@ -13,11 +13,22 @@ import java.util.Scanner; ...@@ -13,11 +13,22 @@ import java.util.Scanner;
* @author simonschnitzler * @author simonschnitzler
*/ */
public class SchnitzlerClient { 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 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 * @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 { public static void main(String[] args) throws Exception {
Socket socket = new Socket(LOCALHOST, 2317); Socket socket = new Socket(LOCALHOST, 2317);
......
...@@ -16,10 +16,18 @@ import java.util.Set; ...@@ -16,10 +16,18 @@ import java.util.Set;
* @author simonschnitzler * @author simonschnitzler
*/ */
public class SchnitzlerServer { public class SchnitzlerServer {
/** Default constructor */
public SchnitzlerServer(){
// default constructor
}
// the set clientWriters contains form all sockets the active PrintStream // the set clientWriters contains form all sockets the active PrintStream
private static Set<PrintWriter> clientWriters = new HashSet<>(); private static Set<PrintWriter> clientWriters = new HashSet<>();
/** /**
* Program invocation, execution starts here
*
* @param args the command line arguments * @param args the command line arguments
*/ */
public static void main(String[] args) { public static void main(String[] args) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment