Skip to content

客户端貌似不需要知道虚拟连接id #14

@trist725

Description

@trist725

客户端和服务端应该是多对1的关系,
网关维护双方的conn对应关系,map[serverConn][]clientConn,则客户端就不必知道虚拟连接id了吧?
只需要网关和服务端的通信需要在包头加上虚拟连接id,
服务端发给网关时,网关获取虚拟连接id,然后从包头去掉该id,转发给客户端。
这样的设计,对客户端来说才是透明的。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions