benilla-re systems structs docs

ClientLink::OnData

function · net · primitive

Address
0x5bb0e0 · 336 bytes, up to 0x5bb22f
Signature
void __thiscall (ClientLink *this, WowConnection *conn, uint32_t time, const uint8_t *data, uint32_t length)
Meaning
Appends received bytes and runs each whole command through the seven-entry handler table, keeping a partial tail
Confidence
verified, proof one
Finding
net/login#logon-commands
Test
net::grunt_on_data

Finding: Logon commands in net: login

The link appends received bytes to a buffer and reads commands from it: a command byte, looked up in a table of seven, whose handler returns 0 when the command is incomplete, 1 when it is malformed, and 2 when it was consumed. An incomplete command waits for more bytes; a malformed one, or an unknown byte, logs Bad command received, empties the buffer and disconnects. The commands, by byte: 0x00 logon challenge, 0x01 logon proof, 0x02 reconnect challenge, 0x03 reconnect proof, 0x10 realm list, 0x30 transfer initiate, 0x31 transfer data.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 8

Calls and jumps by a bare address, from tables/calls.tsv.