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
6f1ac87f
Commit
6f1ac87f
authored
7 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
improved diagnostics
parent
6920bd4c
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
projects/TcpExample1/src/tcpexample1/TcpExample.java
+2
-1
2 additions, 1 deletion
projects/TcpExample1/src/tcpexample1/TcpExample.java
projects/TcpExample2/src/tcpexample2/TcpExample2.java
+2
-1
2 additions, 1 deletion
projects/TcpExample2/src/tcpexample2/TcpExample2.java
with
4 additions
and
2 deletions
projects/TcpExample1/src/tcpexample1/TcpExample.java
+
2
−
1
View file @
6f1ac87f
...
...
@@ -48,7 +48,8 @@ public class TcpExample
OutputStream
os
=
clientConnection
.
getOutputStream
();
PrintStream
ps
=
new
PrintStream
(
os
);
ps
.
println
(
"This was written by the server"
);
ps
.
println
(
"This response was written by server TcpExample1"
);
// to remote client
System
.
out
.
println
(
"This response was written by server TcpExample1"
);
// to server console
// "flush()" in important in that it forces a write
// across what is in fact a slow connection
...
...
This diff is collapsed.
Click to expand it.
projects/TcpExample2/src/tcpexample2/TcpExample2.java
+
2
−
1
View file @
6f1ac87f
...
...
@@ -42,7 +42,8 @@ public class TcpExample2
OutputStream
os
=
clientConnection
.
getOutputStream
();
PrintStream
ps
=
new
PrintStream
(
os
);
ps
.
println
(
"This was written by the server"
);
ps
.
println
(
"This response was written by server TcpExample2"
);
// to remote client
System
.
out
.
println
(
"This response was written by server TcpExample2"
);
// to server console
// Print some information locally about the Socket
// connection. This includes the port and IP numbers
...
...
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