Structs§
- Login
Result - 登录结果
- TcpLogin
Channel - Channel-specific login identity. Platform and broker login share the same body shape, but these fields intentionally differ.
- TcpLogin
Redirect - TcpLogin
Target - TCP login target fields written into
ReqEncryptDatafields 2/6/7/9.
Enums§
- TcpLogin
Attempt Outcome - TcpLogin
Session Phase - Compatibility aliases for callers that still name the C++ login commands.
C++ keeps
is_new_login_ = trueonly until the first successful normal login. Redirects before that success preserve the flag; every reconnect after success sendsfalse.
Constants§
- CMD_
LOGIN_ BROKER - Compatibility aliases for callers that still name the C++ login commands.
- CMD_
LOGIN_ PLATFORM - Compatibility aliases for callers that still name the C++ login commands.
- TCP_
LOGIN_ REDIRECT_ SAFETY_ LIMIT - Rust transport safety bound shared by Platform/Broker login loops.
Functions§
- format_
session_ key_ len_ marker - tcp_
login_ attempt - tcp_
login_ raw_ attempt - 执行 TCP 登录(通用版 —— 同时用于 Platform cmd=6001 和 Broker cmd=1001)