https://github.com/czl0325/test-tcp-go
测试go语言的tcp连接
https://github.com/czl0325/test-tcp-go
Last synced: 3 months ago
JSON representation
测试go语言的tcp连接
- Host: GitHub
- URL: https://github.com/czl0325/test-tcp-go
- Owner: czl0325
- License: apache-2.0
- Created: 2023-07-03T02:24:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-05T01:41:19.000Z (almost 2 years ago)
- Last Synced: 2025-01-22T16:47:27.390Z (4 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-tcp-go
测试go语言的tcp连接先执行命令编译 `go build -o server main.go server.go user.go`,
编译后生成server文件,在运行`./server`启动服务器。
另外开一个终端,执行`nc 127.0.0.1 8888`可以连接服务器