repositorypackage
0.0.0-20191229140452-badc9a6f4446
Repository: https://github.com/ecofast/tcpsock.v2.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
tcpsock.v2
Package tcpsock provides easy to use interfaces for TCP I/O, it's designed especially for developing online game servers.
Examples
there's a chatroom demo which uses custom binary protocol
run chatroom server on a Aliyun VPS(CentOS 7.4) which has 2 CPUs of Intel(R) Xeon(R) E5-2682 v4 @ 2.50GHz, then make 1K connections by using robot(robot.exe -s=ip:port -n=100 -r=0[1,..9]), so there are 10 rooms and each has 100 users connected. Every robot will send some words to chat server during 5~10secs.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5156 root 20 0 76848 62636 1196 S 46.0 0.8 0:55.71 ./server