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
77ceb31e
Commit
77ceb31e
authored
2 years ago
by
Oblak, William (Maj)
Browse files
Options
Downloads
Patches
Plain Diff
Updated Assignment 2 to after revert issues from last week
parent
58357298
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
assignments/src/MV3500Cohort2023MarchJune/homework2/Oblak/UnicastUdpSender.java
+2
-2
2 additions, 2 deletions
...Cohort2023MarchJune/homework2/Oblak/UnicastUdpSender.java
with
2 additions
and
2 deletions
assignments/src/MV3500Cohort2023MarchJune/homework2/Oblak/UnicastUdpSender.java
+
2
−
2
View file @
77ceb31e
...
@@ -28,7 +28,7 @@ public class UnicastUdpSender
...
@@ -28,7 +28,7 @@ public class UnicastUdpSender
// public static final int SENDING_PORT = 1414; // not needed, can let system choose an open local port
// public static final int SENDING_PORT = 1414; // not needed, can let system choose an open local port
/** socket value of shared interest */
/** socket value of shared interest */
public
static
final
int
UDP_PORT
=
UnicastUdpReceiver
.
UDP_PORT
;
// 1415; ensure consistent
public
static
final
int
UDP_PORT
=
UnicastUdpReceiver
.
UDP_PORT
;
// 1415; ensure consistent
private
static
final
int
TOTAL_PACKETS_TO_SEND
=
10
0
;
private
static
final
int
TOTAL_PACKETS_TO_SEND
=
5
0
;
/** socket value of shared interest */
/** socket value of shared interest */
public
static
final
String
DESTINATION_HOST
=
"localhost"
;
public
static
final
String
DESTINATION_HOST
=
"localhost"
;
...
@@ -46,7 +46,7 @@ public class UnicastUdpSender
...
@@ -46,7 +46,7 @@ public class UnicastUdpSender
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
=
MY_NAME
+
" says Hello
MV3500
"
;
// no really
String
message
=
MY_NAME
+
" says Hello
to assingment 2
"
;
// no really
String
padding
=
new
String
();
String
padding
=
new
String
();
try
try
...
...
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