Skip to content
Snippets Groups Projects
Commit 36321eb7 authored by Terry D. Norbraten's avatar Terry D. Norbraten
Browse files

port not req for sender

parent 954ef386
No related branches found
No related tags found
No related merge requests found
...@@ -32,8 +32,8 @@ public class UdpSender ...@@ -32,8 +32,8 @@ public class UdpSender
DataOutputStream dos = null; DataOutputStream dos = null;
int packetID = 0; // counter variable to send in packet int packetID = 0; // counter variable to send in packet
float value = -1.0f; // unreachable value is good sentinel to ensure expected changes occur float value = -1.0f; // unreachable value is good sentinel to ensure expected changes occur
String message = "Hello MV3500"; // no really String message = "Hello from " + MY_NAME; // no really
String padding = new String(); String padding;
try try
{ {
...@@ -41,7 +41,7 @@ public class UdpSender ...@@ -41,7 +41,7 @@ public class UdpSender
System.out.println(UdpSender.class.getName() + " started..."); System.out.println(UdpSender.class.getName() + " started...");
// Create a UDP socket // Create a UDP socket
udpSocket = new DatagramSocket(SENDING_PORT); udpSocket = new DatagramSocket();
// Put together a message with binary content. "ByteArrayOutputStream" // Put together a message with binary content. "ByteArrayOutputStream"
// is a java.io utility that lets us put together an array of binary // is a java.io utility that lets us put together an array of binary
......
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