echo_svr_op.txt
来自「Programs for Distributed Systems. BE sem」· 文本 代码 · 共 52 行
TXT
52 行
Client:
C:\j2sdk1.4.0\bin>javac EchoServer.java
C:\j2sdk1.4.0\bin>java EchoClient localhost
Sending: line 1
Sending: line 2
Sending: line 3
Sending: line 4
Sending: line 5
Sending: line 6
Sending: line 7
Sending: line 8
Sending: line 9
Sending: line 10
Hello! This is Java EchoServer. Enter BYE to exit.
Echo: line 1
Echo: line 2
Echo: line 3
Echo: line 4
Echo: line 5
Echo: line 6
Echo: line 7
Echo: line 8
Echo: line 9
Echo: line 10
Echo: BYE
C:\j2sdk1.4.0\bin>
Server:
C:\j2sdk1.4.0\bin>java EchoServer
EchoServer started.
Connected to: /127.0.0.1 at port: 8008
Received: line 1
Received: line 2
Received: line 3
Received: line 4
Received: line 5
Received: line 6
Received: line 7
Received: line 8
Received: line 9
Received: line 10
Received: BYE
EchoServer stopped.
C:\j2sdk1.4.0\bin>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?