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
573556bf
Commit
573556bf
authored
4 years ago
by
brutzman
Browse files
Options
Downloads
Patches
Plain Diff
ease of modification for destination host
parent
89e436df
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/src/TcpExamples/TcpExample4Client.java
+3
-2
3 additions, 2 deletions
examples/src/TcpExamples/TcpExample4Client.java
examples/src/UdpMulticastExamples/MulticastReceiver.java
+1
-1
1 addition, 1 deletion
examples/src/UdpMulticastExamples/MulticastReceiver.java
with
4 additions
and
3 deletions
examples/src/TcpExamples/TcpExample4Client.java
+
3
−
2
View file @
573556bf
...
...
@@ -15,7 +15,8 @@ import java.net.*;
*/
public
class
TcpExample4Client
{
static
int
MAX_LOOP_COUNT
=
4
;
static
String
DESTINATION_HOST
=
"localhost"
;
static
int
MAX_LOOP_COUNT
=
4
;
public
static
void
main
(
String
[]
args
)
{
...
...
@@ -37,7 +38,7 @@ public class TcpExample4Client
long
startTime
=
System
.
currentTimeMillis
();
// open a socket for each loop
Socket
socket
=
new
Socket
(
"localhost"
,
2317
);
Socket
socket
=
new
Socket
(
DESTINATION_HOST
,
2317
);
// Setup. Read the single line written by the server.
// We'd do things a bit differently if many lines to be read
...
...
This diff is collapsed.
Click to expand it.
examples/src/UdpMulticastExamples/MulticastReceiver.java
+
1
−
1
View file @
573556bf
...
...
@@ -19,7 +19,7 @@ public class MulticastReceiver {
// https://en.wikipedia.org/wiki/Multicast_address
// https://www.iana.org/assignments/multicast-addresses/multicast-addresses.xhtml
public
static
final
String
MULTICAST_ADDRESS
=
"239.1.2.15"
;
public
static
final
int
DESTINATION_PORT
=
1718
;
public
static
final
int
DESTINATION_PORT
=
1718
;
/**
* Time to live: how many router-decrement levels can be crossed
...
...
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