diff --git a/examples/src/UdpMulticastExamples/UdpSender.java b/examples/src/UdpMulticastExamples/UdpSender.java index 00fd1fb11e18eaf82b4144d9adfd3102fb1d072c..7005073ec0105f06141f35a5d4c4787bdc19dc96 100644 --- a/examples/src/UdpMulticastExamples/UdpSender.java +++ b/examples/src/UdpMulticastExamples/UdpSender.java @@ -32,8 +32,8 @@ public class UdpSender DataOutputStream dos = null; int packetID = 0; // counter variable to send in packet float value = -1.0f; // unreachable value is good sentinel to ensure expected changes occur - String message = "Hello MV3500"; // no really - String padding = new String(); + String message = "Hello from " + MY_NAME; // no really + String padding; try { @@ -41,7 +41,7 @@ public class UdpSender System.out.println(UdpSender.class.getName() + " started..."); // Create a UDP socket - udpSocket = new DatagramSocket(SENDING_PORT); + udpSocket = new DatagramSocket(); // Put together a message with binary content. "ByteArrayOutputStream" // is a java.io utility that lets us put together an array of binary