benilla-re systems structs docs

s_serverLinkCommands

global · net

Address
0x85e2e8 · 112 bytes, up to 0x85e357
Type
uint32_t[28]
Meaning
Holds ServerLink's seven commands: byte, name, handler and this offset each
Confidence
verified, proof one
Finding
net/logonlink#server-link-commands

Finding: Server link commands in net: logon link

The start-up initializer 0x5b88a0 fills the server's command table 0x85e2e8: seven 16-byte entries of a command byte, a name, a handler and an offset added to this, like the client's 0x85e278; entry 0's byte and name come from the file. Its one reader, ServerLink::OnData (0x5b9b50), is unreached (layout). 0x5b9630, command 2 (CMD_GRUNT_AUTH_VERIFY), reads and drops a name under 0x20 bytes and 16 and 20 bytes: 0 while the store lacks them, 1 for a long name, else 2. 0x5b8c40, command 0x20 (CMD_GRUNT_HELLO), stores a u32 at +0x74 and, by the mode +0x104, replies 20 00 (mode 1) or 20 0e, a u16 length and the record its realm source gives (mode 0), then sets the state +0x90 to 3.

The derivation is in the doc.