diff --git a/examples/src/UdpMulticastExamples/UdpReceiver.java b/examples/src/UdpMulticastExamples/UdpReceiver.java index 80f49b7138f43efd85601d8df1326f654e4753d0..3b5714c07a61238a68fec761e40358834b3da008 100644 --- a/examples/src/UdpMulticastExamples/UdpReceiver.java +++ b/examples/src/UdpMulticastExamples/UdpReceiver.java @@ -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"; /** diff --git a/examples/src/UdpMulticastExamples/UdpSender.java b/examples/src/UdpMulticastExamples/UdpSender.java index 95f87fd4765e885bbed384f652dbb9b5e5c49137..1d0eb51bceb5785ce72f271ef143fedcda750564 100644 --- a/examples/src/UdpMulticastExamples/UdpSender.java +++ b/examples/src/UdpMulticastExamples/UdpSender.java @@ -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