Skip to main content

Module login

Module login 

Source

Structs§

LoginResult
登录结果
TcpLoginChannel
Channel-specific login identity. Platform and broker login share the same body shape, but these fields intentionally differ.
TcpLoginTarget
TCP login target fields written into ReqEncryptData fields 2/6/7/9.

Constants§

CMD_LOGIN_BROKER
Broker channel 登录命令 ID(C++ kCmdLoginBroker
CMD_LOGIN_PLATFORM
Platform channel 登录命令 ID(C++ kCmdLoginPlatform

Functions§

tcp_login
Platform 通道登录的外层封装:填入 platform 专用参数后调 tcp_login_raw。 保持 v1.4.7 语义不变——默认 cmd=6001,conn_identity 从 attribution 派生,user_id=auth.user_id。
tcp_login_raw
执行 TCP 登录(通用版 —— 同时用于 Platform cmd=6001 和 Broker cmd=1001)