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
0f2ea857
Commit
0f2ea857
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
javadoc
parent
0148741f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/src/UdpMulticastExamples/UdpReceiver.java
+2
-0
2 additions, 0 deletions
examples/src/UdpMulticastExamples/UdpReceiver.java
examples/src/UdpMulticastExamples/UdpSender.java
+7
-5
7 additions, 5 deletions
examples/src/UdpMulticastExamples/UdpSender.java
with
9 additions
and
5 deletions
examples/src/UdpMulticastExamples/UdpReceiver.java
+
2
−
0
View file @
0f2ea857
...
...
@@ -19,7 +19,9 @@ import java.net.*;
public
class
UdpReceiver
{
// public static final int SENDING_PORT = 1414; // port used by UdpSender, unneeded here
/** socket value of shared interest */
public
static
final
int
RECEIVING_PORT
=
1415
;
// sharable
/** socket value of shared interest */
public
static
final
String
DESTINATION_HOST
=
"localhost"
;
/**
...
...
This diff is collapsed.
Click to expand it.
examples/src/UdpMulticastExamples/UdpSender.java
+
7
−
5
View file @
0f2ea857
...
...
@@ -19,12 +19,14 @@ import java.net.*;
*/
public
class
UdpSender
{
public
static
final
String
MY_NAME
=
System
.
getProperty
(
"user.name"
);
// guru incantation 8)
// public static final int SENDING_PORT = 1414; // not needed, can let system choose an open local port
public
static
final
int
RECEIVING_PORT
=
UdpReceiver
.
RECEIVING_PORT
;
// 1415; ensure consistent
public
static
final
int
TOTAL_PACKETS_TO_SEND
=
100
;
private
static
final
String
MY_NAME
=
System
.
getProperty
(
"user.name"
);
// guru incantation 8)
// public static final int SENDING_PORT = 1414; // not needed, can let system choose an open local port
/** socket value of shared interest */
public
static
final
int
RECEIVING_PORT
=
UdpReceiver
.
RECEIVING_PORT
;
// 1415; ensure consistent
private
static
final
int
TOTAL_PACKETS_TO_SEND
=
100
;
public
static
final
String
DESTINATION_HOST
=
"localhost"
;
/** socket value of shared interest */
public
static
final
String
DESTINATION_HOST
=
"localhost"
;
// here is what we need for lab comms
// public static final String DESTINATION_HOST = "10.1.105.16"; // localhost 127.0.0.1 or argon 10.1.105.1 or 10.1.105.1 or whatever
...
...
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