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
67c16158
Commit
67c16158
authored
6 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
better "hello i am here" statement
parent
45284f12
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
CourseExamples/src/TcpExamples/TcpExample1Telnet.java
+2
-0
2 additions, 0 deletions
CourseExamples/src/TcpExamples/TcpExample1Telnet.java
CourseExamples/src/TcpExamples/TcpExample1TerminalLog.txt
+9
-0
9 additions, 0 deletions
CourseExamples/src/TcpExamples/TcpExample1TerminalLog.txt
with
11 additions
and
0 deletions
CourseExamples/src/TcpExamples/TcpExample1Telnet.java
+
2
−
0
View file @
67c16158
...
@@ -34,6 +34,8 @@ public class TcpExample1Telnet
...
@@ -34,6 +34,8 @@ public class TcpExample1Telnet
{
{
try
try
{
{
System
.
out
.
println
(
"TcpExample1Telnet has started and is waiting for a connection: telnet localhost 2317"
);
// The ServerSocket waits for a connection from a client.
// The ServerSocket waits for a connection from a client.
// It returns a Socket object when the connection occurs.
// It returns a Socket object when the connection occurs.
ServerSocket
serverSocket
=
new
ServerSocket
(
2317
);
ServerSocket
serverSocket
=
new
ServerSocket
(
2317
);
...
...
This diff is collapsed.
Click to expand it.
CourseExamples/src/TcpExamples/TcpExample1TerminalLog.txt
+
9
−
0
View file @
67c16158
Program response:
run:
TcpExample1Telnet has started and is waiting for a connection: telnet localhost 2317
This server response was written by server TcpExample1
BUILD SUCCESSFUL (total time: 13 seconds)
Telnet window:
don@it154928 /cygdrive/c/Program Files/NetBeans 8.2
don@it154928 /cygdrive/c/Program Files/NetBeans 8.2
$ telnet localhost 2317
$ telnet localhost 2317
Trying ::1...
Trying ::1...
...
...
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