# Functions
CretaePbPacket 创建要给protobuf的包.
GetRequestID 别名函数,保持一致.
New 创建一个游戏服务器接口实例.
NewClient 新客户端 conn 连接协议实例 readLimit 最大读取包 sendLimit 最大写入包 heart 心跳周期.
NewDefaultContext.
NewPbPacket 新建一个pb的Packet.
NewKcpNetConn 创建一个kcp连接.
NewKcpNetListener 创建一个kcp连接监听器.
NewPacket 从一份数据字节中构造Packet.
NewSession 新建一个Session.
NewTcpNetConn 创建一个Tcp连接.
NewTcpNetListener 创建一个tcp连接监听器.
NewUserNats 创建一个向用户发送消息的nats.
NewWebSocketNetConn 读取WebSocket连接.
NewWebSocketNetListener 创建Websocket监听器.
Packing 从io流中读取出包.
# Constants
向NATS中push推送给其他玩家消息的键.
服务正常运行,均衡获得连接.
服务繁忙,滞后获得连接.
服务满载,不获得新连接.
服务空闲,优先获得连接.
服务初始状态,服务连接数为0.
# Variables
HeartPacket 默认使用0号协议作为心跳包的协议.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HeartPacket 默认使用0号协议作为心跳包的协议.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
DefaultPacket 基于Protobuffer的包协议.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Session 网络会话.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Packet 包接口.
SessionCallback session触发外部事件调用.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author