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
5b67f3d9
Commit
5b67f3d9
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
note timestamp unmodified
parent
f85e1e20
No related branches found
Branches containing commit
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
+4
-3
4 additions, 3 deletions
examples/src/OpenDis7Examples/AllPduSender.java
with
4 additions
and
3 deletions
examples/src/OpenDis7Examples/AllPduSender.java
+
4
−
3
View file @
5b67f3d9
...
@@ -436,7 +436,8 @@ public class AllPduSender
...
@@ -436,7 +436,8 @@ public class AllPduSender
}
}
if
(
aPdu
!=
null
)
if
(
aPdu
!=
null
)
{
{
generatedPdusList
.
add
(
aPdu
);
// leave aPdu timestamp at default value for consistency of output unit tests
generatedPdusList
.
add
(
aPdu
);
}
}
}
}
catch
(
Exception
e
)
catch
(
Exception
e
)
...
@@ -468,12 +469,12 @@ public class AllPduSender
...
@@ -468,12 +469,12 @@ public class AllPduSender
{
{
// careful here! keep object instantiations inside of loop to avoid endless array and packet growth
// careful here! keep object instantiations inside of loop to avoid endless array and packet growth
ByteArrayOutputStream
baos
=
new
ByteArrayOutputStream
();
ByteArrayOutputStream
baos
=
new
ByteArrayOutputStream
();
DataOutputStream
dos
=
new
DataOutputStream
(
baos
);
DataOutputStream
dos
=
new
DataOutputStream
(
baos
);
aPdu
=
generatedPdusList
.
get
(
idx
);
aPdu
=
generatedPdusList
.
get
(
idx
);
try
try
{
{
aPdu
.
marshal
(
dos
);
aPdu
.
marshal
(
dos
);
// dos is DataOutputStream connected to ByteArrayOutputStrea
buffer
=
baos
.
toByteArray
();
buffer
=
baos
.
toByteArray
();
packet
=
new
DatagramPacket
(
buffer
,
buffer
.
length
,
localMulticastAddress
,
DEFAULT_MULTICAST_PORT
);
packet
=
new
DatagramPacket
(
buffer
,
buffer
.
length
,
localMulticastAddress
,
DEFAULT_MULTICAST_PORT
);
...
...
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