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
36321eb7
Commit
36321eb7
authored
4 years ago
by
Terry D. Norbraten
Browse files
Options
Downloads
Patches
Plain Diff
port not req for sender
parent
954ef386
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/UdpMulticastExamples/UdpSender.java
+3
-3
3 additions, 3 deletions
examples/src/UdpMulticastExamples/UdpSender.java
with
3 additions
and
3 deletions
examples/src/UdpMulticastExamples/UdpSender.java
+
3
−
3
View file @
36321eb7
...
@@ -32,8 +32,8 @@ public class UdpSender
...
@@ -32,8 +32,8 @@ public class UdpSender
DataOutputStream
dos
=
null
;
DataOutputStream
dos
=
null
;
int
packetID
=
0
;
// counter variable to send in packet
int
packetID
=
0
;
// counter variable to send in packet
float
value
=
-
1.0f
;
// unreachable value is good sentinel to ensure expected changes occur
float
value
=
-
1.0f
;
// unreachable value is good sentinel to ensure expected changes occur
String
message
=
"Hello
MV3500"
;
// no really
String
message
=
"Hello
from "
+
MY_NAME
;
// no really
String
padding
=
new
String
()
;
String
padding
;
try
try
{
{
...
@@ -41,7 +41,7 @@ public class UdpSender
...
@@ -41,7 +41,7 @@ public class UdpSender
System
.
out
.
println
(
UdpSender
.
class
.
getName
()
+
" started..."
);
System
.
out
.
println
(
UdpSender
.
class
.
getName
()
+
" started..."
);
// Create a UDP socket
// Create a UDP socket
udpSocket
=
new
DatagramSocket
(
SENDING_PORT
);
udpSocket
=
new
DatagramSocket
();
// Put together a message with binary content. "ByteArrayOutputStream"
// Put together a message with binary content. "ByteArrayOutputStream"
// is a java.io utility that lets us put together an array of binary
// is a java.io utility that lets us put together an array of binary
...
...
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