qipai with skynet
-
blog
- 服务端框架skynet: https://github.com/cloudwu/skynet/wiki
- skynet学习资源:https://skynetclub.github.io/skynet/resource.html
-
service
- log4g
- mysql
- websocket
- http
- all suport agent, load balancing
- ...
-
3rd Third party library
- cjson
- dpull的webclient (https://github.com/dpull/lua-webclient)
- lfs
- websocket
-
git
-
submodule
git submodule add https://github.com/cloudwu/skynet.git -
update
git submodule init
git submodule update
submodule远程分支发生变更后,直接使用git submodule update是不会进行更新操作的
git submodule foreach git checkout master
git submodule foreach git pull- delete all git commit logs
https://blog.csdn.net/yc1022/article/details/56487680
1.Checkout git checkout --orphan latest_branch 2. Add all the files git add -A 3. Commit the changes git commit -am "commit message" 4. Delete the branch git branch -D master 5.Rename the current branch to master git branch -m master 6.Finally, force update your repository git push -f origin master
-
测试内容在 test 目录下
# 进入 api 测试目录
cd test/api
# 下载测试依赖文件
npm install
# 运行测试,在命令行查看测试结果
npm test
# 也可以打开 test/api/mochawesome-report/mochawesome.html 查看测试结果
- skynet
-
download skynet
git submodule init
git submodule update
git submodule foreach git checkout master
git submodule foreach git pull -
cloud 下
Linux: make linux
Mac: make macosx -
killall skynet -
sh bin/start.sh
-
- vo关系图
-
vo
FD_list =》 fd (就是连接的socket句柄)
PlayerList =》 Player (用户)
RoomList =》 Room (房间)Round_list =》
{
Round (每一局)
Round_Player_Poker (每一局对应每个用户的牌)
}
-