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
be6f7a12
Commit
be6f7a12
authored
3 years ago
by
terry-norbraten
Browse files
Options
Downloads
Patches
Plain Diff
[Terry N.] javadoc corr. Use class name directly from runtime
parent
b9992789
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
src/edu/nps/moves/dis7/utilities/DisThreadedNetworkInterface.java
+9
-6
9 additions, 6 deletions
...nps/moves/dis7/utilities/DisThreadedNetworkInterface.java
with
9 additions
and
6 deletions
src/edu/nps/moves/dis7/utilities/DisThreadedNetworkInterface.java
+
9
−
6
View file @
be6f7a12
...
...
@@ -7,12 +7,15 @@ package edu.nps.moves.dis7.utilities;
import
edu.nps.moves.dis7.pdus.Pdu
;
import
edu.nps.moves.dis7.pdus.DisTime
;
import
edu.nps.moves.dis7.enumerations.DISPDUType
;
import
java.io.ByteArrayOutputStream
;
import
java.io.DataOutputStream
;
import
java.io.IOException
;
import
java.net.*
;
import
java.nio.ByteBuffer
;
import
java.util.*
;
import
java.util.concurrent.LinkedBlockingQueue
;
import
java.util.logging.Level
;
...
...
@@ -37,7 +40,7 @@ public class DisThreadedNetworkInterface
private
boolean
verboseIncludesTimestamp
=
false
;
/**
* Pdu listener interface
* Pdu listener
class and
interface
*/
public
interface
PduListener
{
...
...
@@ -258,12 +261,12 @@ public class DisThreadedNetworkInterface
{
createDatagramSocket
();
// common asset, synchronized to prevent interleaved reentry
receiver
=
new
Thread
(
receiveThread
,
"DisThreadedNetworkInterface
receive thread"
);
receiver
=
new
Thread
(
receiveThread
,
TRACE_PREFIX
+
"
receive thread"
);
receiver
.
setDaemon
(
true
);
receiver
.
setPriority
(
Thread
.
NORM_PRIORITY
);
receiver
.
start
();
sender
=
new
Thread
(
sendThread
,
"DisThreadedNetworkInterface
send thread"
);
sender
=
new
Thread
(
sendThread
,
TRACE_PREFIX
+
"
send thread"
);
sender
.
setDaemon
(
true
);
sender
.
setPriority
(
Thread
.
NORM_PRIORITY
);
sender
.
start
();
...
...
@@ -443,7 +446,7 @@ public class DisThreadedNetworkInterface
catch
(
InterruptedException
ie
)
{
System
.
err
.
flush
();
System
.
err
.
println
(
"***
DisThreadedNetworkInterface
.sleep("
+
duration
+
") failed to sleep"
);
System
.
err
.
println
(
"***
"
+
getClass
().
getName
()
+
"
.sleep("
+
duration
+
") failed to sleep"
);
ie
.
printStackTrace
();
}
}
...
...
@@ -468,7 +471,7 @@ public class DisThreadedNetworkInterface
addr
=
addresses
.
nextElement
();
if
(
addr
instanceof
Inet4Address
&&
!
addr
.
isLoopbackAddress
()
&&
!
addr
.
isLinkLocalAddress
())
{
System
.
out
.
println
(
TRACE_PREFIX
+
"Using network interface "
+
nif
.
getDisplayName
());
System
.
out
.
println
(
TRACE_PREFIX
+
"
Using network interface "
+
nif
.
getDisplayName
());
return
nif
;
}
}
...
...
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