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 ...@@ -34,13 +34,13 @@ public class EspduSender
* Default multicast port used, matches Wireshark DIS capture default * Default multicast port used, matches Wireshark DIS capture default
*/ */
public static final int DEFAULT_MULTICAST_PORT = 3000; public static final int DEFAULT_MULTICAST_PORT = 3000;
public enum NetworkMode { public enum NetworkMode {
UNICAST, MULTICAST, BROADCAST 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() + "] "; private final static String TRACE_PREFIX = "[" + EspduSender.class.getName() + "] ";
...@@ -295,7 +295,7 @@ public class EspduSender ...@@ -295,7 +295,7 @@ public class EspduSender
FirePdu firePdu = new FirePdu(); FirePdu firePdu = new FirePdu();
firePdu.setLocationInWorldCoordinates(espdu.getEntityLocation()); firePdu.setLocationInWorldCoordinates(espdu.getEntityLocation());
byte[] fireArray = firePdu.marshal(); byte[] fireArray = firePdu.marshal();
// CommentPdu newCommentPdu = new CommentPdu(); // CommentPdu newCommentPdu = new CommentPdu();
// ArrayList<VariableDatum> payloadList = new ArrayList<>(); // ArrayList<VariableDatum> payloadList = new ArrayList<>();
// ArrayList<String> commentsList = new ArrayList<>(); // ArrayList<String> commentsList = new ArrayList<>();
...@@ -349,7 +349,7 @@ public class EspduSender ...@@ -349,7 +349,7 @@ public class EspduSender
} }
catch (Exception e) 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(e);
} }
System.out.println("==============="); System.out.println("===============");
...@@ -400,7 +400,7 @@ public class EspduSender ...@@ -400,7 +400,7 @@ public class EspduSender
} }
catch (SocketException e) 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); System.out.println(e);
} }
return broadcastAddresses; 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