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
1faa3a77
Commit
1faa3a77
authored
2 years ago
by
Chojnacki, Bruce (LTC)
Browse files
Options
Downloads
Patches
Plain Diff
Assignment 1
parent
65cfec8b
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/homework1/Chojnacki/Assignment1Client.java
+4
-1
4 additions, 1 deletion
...t2023MarchJune/homework1/Chojnacki/Assignment1Client.java
with
4 additions
and
1 deletion
assignments/src/MV3500Cohort2023MarchJune/homework1/Chojnacki/Assignment1Client.java
+
4
−
1
View file @
1faa3a77
...
@@ -2,6 +2,8 @@ package MV3500Cohort2023MarchJune.homework1.Chojnacki;
...
@@ -2,6 +2,8 @@ package MV3500Cohort2023MarchJune.homework1.Chojnacki;
import
java.io.*
;
import
java.io.*
;
import
java.net.*
;
import
java.net.*
;
import
java.text.SimpleDateFormat
;
import
java.util.Calendar
;
/**
/**
* Testing
* Testing
...
@@ -72,7 +74,8 @@ public class Assignment1Client
...
@@ -72,7 +74,8 @@ public class Assignment1Client
System
.
out
.
println
(
"======================Assignment1==========================="
);
System
.
out
.
println
(
"======================Assignment1==========================="
);
System
.
out
.
print
(
"Client loop "
+
clientLoopCount
+
": "
);
System
.
out
.
print
(
"Client loop "
+
clientLoopCount
+
": "
);
System
.
out
.
println
(
"We are connected to the server!"
);
String
timeStamp
=
new
SimpleDateFormat
(
"yyyyMMdd_HHmmss"
).
format
(
Calendar
.
getInstance
().
getTime
());
System
.
out
.
println
(
"The current system time is "
+
timeStamp
+
"!"
);
System
.
out
.
println
(
"The message the server sent was: '"
+
serverMessage
+
"'"
);
System
.
out
.
println
(
"The message the server sent was: '"
+
serverMessage
+
"'"
);
// socket gets closed, either automatically/silently by this code (or possibly by the server)
// socket gets closed, either automatically/silently by this code (or possibly by the server)
...
...
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