We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
大致流程: client 协议先发送到 gate, 网关经过一些处理后再转发到相应内网中的 game节点.
目前 server.AddRouter 都只是针对固定协议id配置对应的路由逻辑, 那如果只想在gate节点对数据进行一些二次封装后(附加一些信息),做转发
gate接收到消息以后该如何配置路由呢?
The text was updated successfully, but these errors were encountered:
你所谓的gate接收信息后怎么配置路由我不是很理解,你想表达的是不是client连接到gate,然后gate在连接到对应的game节点吧。你搭建的gate层只是一个跳板而已,用于存储client信息和game节点信息。如果client信息到gate中,你直接从gate中发送到对应的game节点就好了
Sorry, something went wrong.
你的理解大致是对的 , 其实gate就是做转发. 我不太清楚的是 gate里面应该如何配置router中协议的转发规则, 比如1-100的协议转发到game节点, 101-200的协议转发到rank节点
这属于逻辑层了。
No branches or pull requests
大致流程: client 协议先发送到 gate, 网关经过一些处理后再转发到相应内网中的 game节点.
目前 server.AddRouter 都只是针对固定协议id配置对应的路由逻辑,
那如果只想在gate节点对数据进行一些二次封装后(附加一些信息),做转发
gate接收到消息以后该如何配置路由呢?
The text was updated successfully, but these errors were encountered: