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
672bf38c
Commit
672bf38c
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
whitespace
parent
8d34fadc
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/TcpExample1Telnet.java
+1
-1
1 addition, 1 deletion
examples/src/TcpExamples/TcpExample1Telnet.java
examples/src/TcpExamples/TcpExample3Server.java
+1
-2
1 addition, 2 deletions
examples/src/TcpExamples/TcpExample3Server.java
with
2 additions
and
3 deletions
examples/src/TcpExamples/TcpExample1Telnet.java
+
1
−
1
View file @
672bf38c
...
...
@@ -59,7 +59,7 @@ public class TcpExample1Telnet
// Use Java io classes to write text (as opposed to
// unknown bytes of some sort) to the client
OutputStream
os
=
clientConnection
.
getOutputStream
();
PrintStream
ps
=
new
PrintStream
(
os
);
PrintStream
ps
=
new
PrintStream
(
os
);
ps
.
println
(
"This client response was written by server "
+
TcpExample1Telnet
.
class
.
getName
());
// to remote client
System
.
out
.
println
(
"This server response was written by server "
+
TcpExample1Telnet
.
class
.
getName
());
// to server console
...
...
This diff is collapsed.
Click to expand it.
examples/src/TcpExamples/TcpExample3Server.java
+
1
−
2
View file @
672bf38c
...
...
@@ -81,8 +81,7 @@ public class TcpExample3Server {
if
(
localAddress
.
getHostName
().
equals
(
localAddress
.
getHostAddress
())
||
remoteAddress
.
getHostName
().
equals
(
remoteAddress
.
getHostAddress
()))
System
.
out
.
println
(
" note HostName matches address if host has no DNS name"
);
System
.
out
.
println
(
" note HostName matches address if host has no DNS name"
);
// Notice the use of flush() and try w/ resources. Without
// the try w/ resources the Socket object may stay open for
// a while after the client has stopped needing this
...
...
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