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
75cd9e2f
Commit
75cd9e2f
authored
9 months ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
explanatory comment
parent
c7d62292
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/UdpExamples/UnicastUdpReceiver.java
+2
-2
2 additions, 2 deletions
examples/src/UdpExamples/UnicastUdpReceiver.java
with
2 additions
and
2 deletions
examples/src/UdpExamples/UnicastUdpReceiver.java
+
2
−
2
View file @
75cd9e2f
...
@@ -51,7 +51,7 @@ public class UnicastUdpReceiver
...
@@ -51,7 +51,7 @@ public class UnicastUdpReceiver
DatagramPacket
receivePacket
=
new
DatagramPacket
(
byteArray
,
byteArray
.
length
);
DatagramPacket
receivePacket
=
new
DatagramPacket
(
byteArray
,
byteArray
.
length
);
ByteArrayInputStream
bais
=
new
ByteArrayInputStream
(
byteArray
);
ByteArrayInputStream
bais
=
new
ByteArrayInputStream
(
byteArray
);
DataInputStream
dis
=
new
DataInputStream
(
bais
);
DataInputStream
dis
=
new
DataInputStream
(
bais
);
boolean
isEvenParity
;
boolean
isEvenParity
;
int
packetCount
=
0
;
int
packetCount
=
0
;
...
@@ -102,7 +102,7 @@ public class UnicastUdpReceiver
...
@@ -102,7 +102,7 @@ public class UnicastUdpReceiver
finally
// clean up prior to exit, don't want to leave behind zombie socket
finally
// clean up prior to exit, don't want to leave behind zombie socket
{
{
if
(
udpSocket
!=
null
)
if
(
udpSocket
!=
null
)
udpSocket
.
close
();
udpSocket
.
close
();
// making sure the perhaps-scarce resource is released
System
.
out
.
println
(
UnicastUdpReceiver
.
class
.
getName
()
+
" complete."
);
// all done
System
.
out
.
println
(
UnicastUdpReceiver
.
class
.
getName
()
+
" complete."
);
// all done
}
}
}
}
...
...
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