Skip to content
Snippets Groups Projects
Commit dd5c5c89 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

latest build

parent 9961507d
No related branches found
No related tags found
No related merge requests found
...@@ -413,6 +413,8 @@ public class AllPduSender ...@@ -413,6 +413,8 @@ public class AllPduSender
{ {
VariableDatum newVariableDatum = new VariableDatum(); VariableDatum newVariableDatum = new VariableDatum();
newVariableDatum.setVariableDatumValue (comment.getBytes()); // conversion newVariableDatum.setVariableDatumValue (comment.getBytes()); // conversion
// TODO confirm whether method overloading is appropriate
// newVariableDatum.setVariableDatumLength(comment.getBytes().length);
newVariableDatum.setVariableDatumLengthInBytes(comment.getBytes().length); // also available in bits, see spec and javadoc newVariableDatum.setVariableDatumLengthInBytes(comment.getBytes().length); // also available in bits, see spec and javadoc
// alternatively, you do not need to set this and the marshaller will figure it out from the byte array // alternatively, you do not need to set this and the marshaller will figure it out from the byte array
// (see javadoc for VariableDatum.setVariableDatumLength()) // (see javadoc for VariableDatum.setVariableDatumLength())
......
...@@ -88,4 +88,4 @@ Sent packet #70, DisPduType 70 INFORMATION_OPERATIONS_ACTION (packet.getLen ...@@ -88,4 +88,4 @@ Sent packet #70, DisPduType 70 INFORMATION_OPERATIONS_ACTION (packet.getLen
Sent packet #71, DisPduType 71 INFORMATION_OPERATIONS_REPORT (packet.getLength()= 40) of type edu.nps.moves.dis7.pdus.InformationOperationsReportPdu Sent packet #71, DisPduType 71 INFORMATION_OPERATIONS_REPORT (packet.getLength()= 40) of type edu.nps.moves.dis7.pdus.InformationOperationsReportPdu
Sent packet #72, DisPduType 72 ATTRIBUTE (packet.getLength()= 32) of type edu.nps.moves.dis7.pdus.AttributePdu Sent packet #72, DisPduType 72 ATTRIBUTE (packet.getLength()= 32) of type edu.nps.moves.dis7.pdus.AttributePdu
OpenDis7Examples.AllPduSender complete, sent 72 PDUs total. OpenDis7Examples.AllPduSender complete, sent 72 PDUs total.
BUILD SUCCESSFUL (total time: 4 seconds) BUILD SUCCESSFUL (total time: 3 seconds)
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