panshiqu / framework Goto Github PK
View Code? Open in Web Editor NEWa simple game framework
a simple game framework
Lines 115 to 136 in af6c952
为什么这么设计呢?
Lines 52 to 60 in af6c952
Lines 95 to 115 in af6c952
我看你,network 里面的 server 似乎,只能被动发消息给conn (只有收到消息后,处理消息时,才有机会发送消息给 conn) 似乎没有主动发送消息给conn 的途径
如果服务端,需要广播消息给用户,怎么办?
Lines 139 to 167 in af6c952
这个
atomic.StoreInt32(&s.status, define.KeepAliveWarn)
换成:
atomic.CompareAndSwapInt32(&s.status, define.KeepAliveSafe, define.KeepAliveWarn)
防止客户端收到报文,刚设定为KeepAliveSafe, 然后就被替换成KeepAliveWarn
代理节点,到各个服务器节点的连接,是否需要保活?
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.