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

add diagnostic for total PDU types, TODO make that value built in

parent 66f2b3b9
No related branches found
No related tags found
No related merge requests found
...@@ -415,6 +415,9 @@ public class AllPduSender ...@@ -415,6 +415,9 @@ public class AllPduSender
// continue looping // continue looping
} }
} }
if (generatedPdusList.size() != 72) // TODO create an enumeration DISType.TOTAL_PDU_TYPES
System.out.println("Error: " + generatedPdusList.size() + " PDUs generated but 72 PDUs expected.");
// Send the PDUs we created // Send the PDUs we created
System.out.println("Send the " + generatedPdusList.size() + " PDUs we created..."); System.out.println("Send the " + generatedPdusList.size() + " PDUs we created...");
...@@ -471,8 +474,8 @@ public class AllPduSender ...@@ -471,8 +474,8 @@ public class AllPduSender
{ {
System.out.println("Usage: AllPduSender <port> <multicast group>"); System.out.println("Usage: AllPduSender <port> <multicast group>");
System.out.println("Default: AllPduSender " + DEFAULT_MULTICAST_PORT + " " + DEFAULT_MULTICAST_ADDRESS); System.out.println("Default: AllPduSender " + DEFAULT_MULTICAST_PORT + " " + DEFAULT_MULTICAST_ADDRESS);
AllPduSender sender = new AllPduSender(DEFAULT_MULTICAST_PORT, DEFAULT_MULTICAST_ADDRESS); AllPduSender allPduSender = new AllPduSender(DEFAULT_MULTICAST_PORT, DEFAULT_MULTICAST_ADDRESS);
sender.run(); allPduSender.run();
} }
System.out.println("DisExamplesOpenDis7.AllPduSender complete."); System.out.println("DisExamplesOpenDis7.AllPduSender complete.");
} }
......
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