Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
e4c321cc
Commit
e4c321cc
authored
5 years ago
by
brutzman
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/src/OpenDis7Examples/AllPduSender.java
+5
-2
5 additions, 2 deletions
examples/src/OpenDis7Examples/AllPduSender.java
with
5 additions
and
2 deletions
examples/src/OpenDis7Examples/AllPduSender.java
+
5
−
2
View file @
e4c321cc
...
@@ -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
s
ender
=
new
AllPduSender
(
DEFAULT_MULTICAST_PORT
,
DEFAULT_MULTICAST_ADDRESS
);
AllPduSender
allPduS
ender
=
new
AllPduSender
(
DEFAULT_MULTICAST_PORT
,
DEFAULT_MULTICAST_ADDRESS
);
s
ender
.
run
();
allPduS
ender
.
run
();
}
}
System
.
out
.
println
(
"DisExamplesOpenDis7.AllPduSender complete."
);
System
.
out
.
println
(
"DisExamplesOpenDis7.AllPduSender complete."
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment