Skip to content
Snippets Groups Projects
Commit a566f60d authored by brutzman's avatar brutzman
Browse files

javadoc cleanups

parent 3d320cac
No related branches found
No related tags found
No related merge requests found
Showing
with 45 additions and 42 deletions
......@@ -122,7 +122,7 @@ public class TGTSendRecieve {
/**
* Main function takes no specific arguments, but is the recieving portion of the code. Once it hears a specific type of PDU it creates another and sends it to the Run function
* called sender created on line 135 (2nd statement in the main function)
* @param args
* @param args command-line arguments
* @throws IOException
*/
public static void main(String[] args) throws IOException {
......
......@@ -45,7 +45,7 @@ public class BrennenstuhlEspduSender
* a join() will be done on the multicast address. port: port used for both
* source and destination.
*
* @param args
* @param args command-line arguments
*/
public static void main(String args[])
{
......
......@@ -51,7 +51,7 @@ public class SchuttESPDUSender {
* a join() will be done on the multicast address. port: port used for both
* source and destination.
*
* @param args
* @param args command-line arguments
*/
public static void main(String args[]) {
System.out.println("SchuttESPDUSender started...");
......
......@@ -41,7 +41,7 @@ public class Yurk_EspduSender
* a join() will be done on the multicast address. port: port used for both
* source and destination.
*
* @param args
* @param args command-line arguments
*/
public static void main(String args[])
{
......
......@@ -14,7 +14,7 @@ import java.net.Socket;
public class CannonTcpExample1Telnet {
/**
* @param args the command line arguments
* @param args command-line arguments
*/
public static void main(String[] args) {
try {
......
......@@ -14,7 +14,7 @@ import java.net.Socket;
public class GoerickeTcpExample1Telnet {
/**
* @param args the command line arguments
* @param args command-line arguments
*/
public static void main(String[] args) throws IOException {
System.out.println("Homework 1 MV3500 - Summer 2020 (Author: Stefan Goericke)");
......
......@@ -9,8 +9,8 @@ import java.net.Socket;
/**
* Simple TCP Telnet Server, MV3500 Homework 1
* copied parts from: TcpExample1Telnet.java by @author mcgredo & @author brutzman
* @date 07/16/2020
* copied parts from: TcpExample1Telnet.java by @author mcgredo and @author brutzman
* @version 07/16/2020
* @author Loki
*/
public class WeissenbergerTcpExample1Telnet {
......
......@@ -33,7 +33,7 @@ import java.net.Socket;
public class CannonServer {
/**
* @param args the command line arguments
* @param args command-line arguments
*/
public static void main(String[] args) {
try {
......
......@@ -28,7 +28,7 @@ public class GoerickeServer {
/**
* @param args the command line arguments
* @param args command-line arguments
*/
public static void main(String[] args) {
System.out.print(getLogo());
......
......@@ -98,7 +98,7 @@ public class LokiChatClient implements Runnable {
/**
* main method with fix IP and Port
* @param args
* @param args command-line arguments
*/
public static void main(String args[]) {
LokiChatClient client = null;
......
......@@ -139,7 +139,7 @@ public class LokiChatServer implements Runnable {
/**
* the main for this class. Just starts a new server listening at port 2317
* @param args
* @param args command-line arguments
*/
public static void main(String args[]) {
LokiChatServer server = null;
......
......@@ -10,8 +10,8 @@ import java.net.*;
*
* Start this before launching UdpSender.
*
* @see https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html
* @see https://en.wikipedia.org/wiki/User_Datagram_Protocol
* @see <a href="https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html">https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html</a>
* @see <a href="https://en.wikipedia.org/wiki/User_Datagram_Protocol">https://en.wikipedia.org/wiki/User_Datagram_Protocol</a>
* @author mcgredo
* @author brutzman
*/
......@@ -22,7 +22,7 @@ public class UdpReceiver
public static final String DESINATION_HOST = "localhost";
/**
* @param args the command line arguments
* @param args command-line arguments
* @throws java.io.IOException
*/
public static void main(String[] args) throws IOException
......
......@@ -11,14 +11,14 @@ import java.net.*;
*
* Start this before launching UdpReceiver.
*
* @see https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html
* @see https://en.wikipedia.org/wiki/User_Datagram_Protocol
* @see <a href="https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html">https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html</a>
* @see <a href="https://en.wikipedia.org/wiki/User_Datagram_Protocol">https://en.wikipedia.org/wiki/User_Datagram_Protocol</a>
* @see <a href="https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html">System properties</a>
* @author mcgredo
* @author brutzman
*/
public class UdpSender
{
// System properties: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
public static final String MY_NAME = System.getProperty("user.name"); // guru incantation 8)
// public static final int SENDING_PORT = 1414; // not needed, can let system choose an open local port
public static final int RECEIVING_PORT = 1415;
......
......@@ -10,8 +10,8 @@ import java.net.*;
*
* Start this before launching UdpSender.
*
* @see https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html
* @see https://en.wikipedia.org/wiki/User_Datagram_Protocol
* @see <a href="https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html">https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html</a>
* @see <a href="https://en.wikipedia.org/wiki/User_Datagram_Protocol">https://en.wikipedia.org/wiki/User_Datagram_Protocol</a>
* @author mcgredo
* @author brutzman
*/
......@@ -22,7 +22,7 @@ public class CannonUdpReceiver
public static final String DESINATION_HOST = "localhost";
/**
* @param args the command line arguments
* @param args command-line arguments
* @throws java.io.IOException
*/
public static void main(String[] args) throws IOException
......
......@@ -11,14 +11,14 @@ import java.net.*;
*
* Start this before launching UdpReceiver.
*
* @see https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html
* @see https://en.wikipedia.org/wiki/User_Datagram_Protocol
* @see <a href="https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html">https://docs.oracle.com/javase/tutorial/essential/io/datastreams.html</a>
* @see <a href="https://en.wikipedia.org/wiki/User_Datagram_Protocol">https://en.wikipedia.org/wiki/User_Datagram_Protocol</a>
* @see <a href="https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html">System properties</a>
* @author mcgredo
* @author brutzman
*/
public class CannonUdpSender
{
// System properties: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
public static final String MY_NAME = System.getProperty("user.name"); // guru incantation 8)
// public static final int SENDING_PORT = 1414; // not needed, can let system choose an open local port
public static final int RECEIVING_PORT = 1415;
......
......@@ -18,7 +18,7 @@ public class UDPReceiverGaribay
public static final String DESINATION_HOST = "localhost";
/**
* @param args the command line arguments
* @param args command-line arguments
* @throws java.io.IOException
*/
public static void main(String[] args) throws IOException
......
......@@ -15,16 +15,17 @@ import java.net.Socket;
/**
* This class will be connected by an TCP sender over VPN (argon), calculating
* a result of an equation and send the result back via UDP over VPN.
* @date 08/17/2020
* @group Goericke/Weissenberger
* @version 08/17/2020
* @author Goericke
* @author Weissenberger
*/
public class TCPNumberReceiverUDPResultSender {
// Change this to the port where the TCP server is listening
private static final int TCP_ARGON_SERVER_PORT = 2317;
public static final int TCP_ARGON_SERVER_PORT = 2317;
/**
* @param args the command line arguments
* @param args command-line arguments
*/
public static void main(String[] args) {
try {
......
......@@ -14,7 +14,7 @@ public class MahanUdpReceiver
public static final String DESINATION_HOST = "10.1.105.12";
/**
* @param args the command line arguments
* @param args command-line arguments
* @throws java.io.IOException
*/
public static void main(String[] args) throws IOException
......
......@@ -9,25 +9,26 @@ import java.net.Socket;
/**
* This class will connect to an TCP receiver over VPN (argon) and send
* two numbers
* @date 08/17/2020
* @version 08/17/2020
* @author Loki
* @group Weissenberger/Goericke
* @author Goericke
* @author Weissenberger
*/
public class TCPNumberSender {
// Change this to the IP address of the TCP server 10.1.105.9 (127.0.0.1 just for testing)
private static final String TCP_ARGON_SERVER_IP = "127.0.0.1";
public static final String TCP_ARGON_SERVER_IP = "127.0.0.1";
// Change this to the port where the TCP server is listening
private static final int TCP_ARGON_SERVER_PORT = 2317;
public static final int TCP_ARGON_SERVER_PORT = 2317;
// Where the result should be posted (port)
private static final int UDP_ARGON_RECEIVING_PORT = 1415;
public static final int UDP_ARGON_RECEIVING_PORT = 1415;
private static final int NUMBER1 = 16;
private static final int NUMBER2 = 2;
private static final String CALCULATION_METHOD = "-";
public static final int NUMBER1 = 16;
public static final int NUMBER2 = 2;
public static final String CALCULATION_METHOD = "-";
// how many times should the number being sent
private static final int REPETITION = 1;
public static final int REPETITION = 1;
private static int counter = 0;
public static void main(String[] args) throws InterruptedException {
......
......@@ -9,16 +9,17 @@ import java.net.DatagramSocket;
/**
* This class will be connected by an UDP sender over VPN (argon)
* @date 08/17/2020
* @version 08/17/2020
* @author Loki
* @group Weissenberger/Goericke
* @author Goericke
* @author Weissenberger
*/
public class UDPResultReceiver {
public static final int RECEIVING_PORT = 1415;
/**
* @param args the command line arguments
* @param args command-line arguments
* @throws java.io.IOException
*/
public static void main(String[] args) throws IOException
......
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