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
621f6cf9
Commit
621f6cf9
authored
6 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
simple addition to output message that distinguishes client from server
parent
5bcf57a2
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
projects/TcpExample1/src/tcpexample1/TcpExample.java
+2
-2
2 additions, 2 deletions
projects/TcpExample1/src/tcpexample1/TcpExample.java
with
2 additions
and
2 deletions
projects/TcpExample1/src/tcpexample1/TcpExample.java
+
2
−
2
View file @
621f6cf9
...
@@ -48,8 +48,8 @@ public class TcpExample
...
@@ -48,8 +48,8 @@ public class TcpExample
OutputStream
os
=
clientConnection
.
getOutputStream
();
OutputStream
os
=
clientConnection
.
getOutputStream
();
PrintStream
ps
=
new
PrintStream
(
os
);
PrintStream
ps
=
new
PrintStream
(
os
);
ps
.
println
(
"This response was written by server TcpExample1"
);
// to remote client
ps
.
println
(
"This
client
response was written by server TcpExample1"
);
// to remote client
System
.
out
.
println
(
"This response was written by server TcpExample1"
);
// to server console
System
.
out
.
println
(
"This
server
response was written by server TcpExample1"
);
// to server console
// "flush()" in important in that it forces a write
// "flush()" in important in that it forces a write
// across what is in fact a slow connection
// across what is in fact a slow connection
...
...
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