Skip to content
Snippets Groups Projects
Commit 6ff2e121 authored by brutzman's avatar brutzman
Browse files

touchups

parent fb4e4409
No related branches found
No related tags found
No related merge requests found
......@@ -34,13 +34,13 @@ public class EspduSender
* Default multicast port used, matches Wireshark DIS capture default
*/
public static final int DEFAULT_MULTICAST_PORT = 3000;
public enum NetworkMode {
UNICAST, MULTICAST, BROADCAST
};
/**
* Output prefix to identify this class
* Output prefix to identify this class, helps with logging
*/
private final static String TRACE_PREFIX = "[" + EspduSender.class.getName() + "] ";
......@@ -295,7 +295,7 @@ public class EspduSender
FirePdu firePdu = new FirePdu();
firePdu.setLocationInWorldCoordinates(espdu.getEntityLocation());
byte[] fireArray = firePdu.marshal();
// CommentPdu newCommentPdu = new CommentPdu();
// ArrayList<VariableDatum> payloadList = new ArrayList<>();
// ArrayList<String> commentsList = new ArrayList<>();
......@@ -349,7 +349,7 @@ public class EspduSender
}
catch (Exception e)
{
System.out.println(TRACE_PREFIX + "Problem with " + e.getMessage() + ", see exception trace:");
System.out.println(TRACE_PREFIX + "Problem with " + e + ", see exception trace:");
System.out.println(e);
}
System.out.println("===============");
......@@ -400,7 +400,7 @@ public class EspduSender
}
catch (SocketException e)
{
System.out.println(TRACE_PREFIX + "Problem with .getBroadcastAddresses(), see exception trace:" + e.getMessage());
System.out.println(TRACE_PREFIX + "Problem with .getBroadcastAddresses(), see exception trace:" + e);
System.out.println(e);
}
return broadcastAddresses;
......
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