Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 481 Bytes

ReadMe.md

File metadata and controls

30 lines (22 loc) · 481 Bytes

使用方法

# Server 10000 端口
python3 server.py  10000 

# Client
python3 client.py localhost 10000

内容显示

# Server
➜  udp git:(master) ✗ python3 server.py  10000
['server.py', '10000']
UDP bound on port  10000
Receive from 127.0.0.1:53606
Receive from 127.0.0.1:53606

# Client
➜  udp git:(master) ✗ python3 client.py localhost 10000
Receive from 127.0.0.1:10000
Hello tester!

Receive from 127.0.0.1:10000
Hello tester!