viphxin / xingo Goto Github PK
View Code? Open in Web Editor NEW高性能golang网络库,游戏开发脚手架
License: Apache License 2.0
高性能golang网络库,游戏开发脚手架
License: Apache License 2.0
作者你好,这个是不是仿pomelo的,对这个很感兴趣,可惜文档太少
怎么自定义协议和封包解包啊?又例子吗?
使用GlobalObj配置选择哪种模式
Func_1 消息id为1的处理函数,这种方式少一步注册的,但是一般来说消息都知道消息名,然后去找对应处理函数,这样比较方便
Lines 85 to 90 in bfb5c6f
ln, err := net.Listen(this.IPVersion, fmt.Sprintf("%s:%d", this.IP, this.Port))
这样写,有什么好处?
谢谢
gob.Register(RpcData{})
gob.Register([]interface{}{})
我加了以上两句。。。不然会报错类型不支持
纯golang要做到热更新,感觉目前还没有很成熟的一套东西,做到平滑升级还是可行的.当某一节点的新版本启动时,停止向旧节点发起服务请求,新的服务全部转向新节点,等待旧节点完成所有服务后关闭.在xingo现有的构架上面实现并不算很难,希望作者大大考虑一下.
at xingo.go , function "NewXingoMater" miss a ‘s’ .
当已经启动过一个节点的时候,因为失误或者其他原因重复启动某一节点时,原有正常的的节点会失效.正确的姿势应该是提示该节点已经启动. master rpc中的TakeProxy应该做相应处理.....这个对运营至关重要
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.