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
d976a707
Commit
d976a707
authored
1 month ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
Security warnings in comments
parent
925bbbc2
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/UdpExamples/MulticastUdpChatKeyboardSender.java
+2
-1
2 additions, 1 deletion
examples/src/UdpExamples/MulticastUdpChatKeyboardSender.java
with
2 additions
and
1 deletion
examples/src/UdpExamples/MulticastUdpChatKeyboardSender.java
+
2
−
1
View file @
d976a707
...
...
@@ -16,7 +16,7 @@ import java.util.logging.Logger;
* home network) even if one or both machines are connected via a
* <a href="https://en.wikipedia.org/wiki/Virtual_private_network" target="_blank">Virtual Private Network (VPN)</a>.
*
* Privacy
note
: this sender advertises your user name as part of the multicast packet message
* Privacy
warning
: this sender advertises your user name as part of the multicast packet message
*
* @author mcgredo
* @author brutzman@nps.edu
...
...
@@ -90,6 +90,7 @@ public class MulticastUdpChatKeyboardSender
byte
[]
buffer
=
baos
.
toByteArray
();
DatagramPacket
packet
=
new
DatagramPacket
(
buffer
,
buffer
.
length
,
group
/*, DESTINATION_PORT*/
);
// Security warning: this application reveals your user name
String
userName
=
System
.
getProperty
(
"user.name"
);
String
newMessage
=
new
String
();
// from user via keyboard
...
...
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