Skip to content
Snippets Groups Projects
Commit 0f2ea857 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

javadoc

parent 0148741f
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,9 @@ import java.net.*;
public class UdpReceiver
{
// public static final int SENDING_PORT = 1414; // port used by UdpSender, unneeded here
/** socket value of shared interest */
public static final int RECEIVING_PORT = 1415; // sharable
/** socket value of shared interest */
public static final String DESTINATION_HOST = "localhost";
/**
......
......@@ -19,12 +19,14 @@ import java.net.*;
*/
public class UdpSender
{
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 = UdpReceiver.RECEIVING_PORT; // 1415; ensure consistent
public static final int TOTAL_PACKETS_TO_SEND = 100;
private 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
/** socket value of shared interest */
public static final int RECEIVING_PORT = UdpReceiver.RECEIVING_PORT; // 1415; ensure consistent
private static final int TOTAL_PACKETS_TO_SEND = 100;
public static final String DESTINATION_HOST = "localhost";
/** socket value of shared interest */
public static final String DESTINATION_HOST = "localhost";
// here is what we need for lab comms
// public static final String DESTINATION_HOST = "10.1.105.16"; // localhost 127.0.0.1 or argon 10.1.105.1 or 10.1.105.1 or whatever
......
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