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.
TcpLoginRedirect
TcpLoginTarget
TCP login target fields written into ReqEncryptData fields 2/6/7/9.

Enums§

TcpLoginAttemptOutcome
TcpLoginSessionPhase
Compatibility aliases for callers that still name the C++ login commands. C++ keeps is_new_login_ = true only until the first successful normal login. Redirects before that success preserve the flag; every reconnect after success sends false.

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)