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
a0674bed
Commit
a0674bed
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
sleep delay, warning
parent
39e28599
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/TcpExamples/TcpExample3Client.java
+4
-2
4 additions, 2 deletions
examples/src/TcpExamples/TcpExample3Client.java
with
4 additions
and
2 deletions
examples/src/TcpExamples/TcpExample3Client.java
+
4
−
2
View file @
a0674bed
...
...
@@ -25,7 +25,7 @@ public class TcpExample3Client {
* Program invocation, execution starts here
* @param args command-line arguments
*/
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
throws
InterruptedException
{
// Local variables/fields
Socket
socket
=
null
;
...
...
@@ -64,7 +64,9 @@ public class TcpExample3Client {
System
.
out
.
println
(
"The message the server sent was: '"
+
serverMessage
+
"'"
);
// socket gets closed, either automatically/silently by this code (or possibly by the server)
}
// end while(true)
Thread
.
sleep
(
500
l
);
// slow things down, for example 500l (long) = 500 msec
}
// end while(true) // infinite loops are dangerous, be sure to kill this process!
}
catch
(
IOException
e
)
{
...
...
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