From 36321eb766aeadea669f26ebe0ba81fe43affa55 Mon Sep 17 00:00:00 2001
From: "Norbraten, Terry" <tdnorbra@nps.edu>
Date: Tue, 18 Aug 2020 15:44:05 -0700
Subject: [PATCH] port not req for sender

---
 examples/src/UdpMulticastExamples/UdpSender.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/src/UdpMulticastExamples/UdpSender.java b/examples/src/UdpMulticastExamples/UdpSender.java
index 00fd1fb11e..7005073ec0 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
-- 
GitLab