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
6ff2e121
Commit
6ff2e121
authored
4 years ago
by
brutzman
Browse files
Options
Downloads
Patches
Plain Diff
touchups
parent
fb4e4409
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/EspduSender.java
+5
-5
5 additions, 5 deletions
examples/src/OpenDis7Examples/EspduSender.java
with
5 additions
and
5 deletions
examples/src/OpenDis7Examples/EspduSender.java
+
5
−
5
View file @
6ff2e121
...
@@ -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
;
...
...
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