⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 echo_svr_op.txt

📁 Programs for Distributed Systems. BE sem 2 for Computer engineering
💻 TXT
字号:

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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -