benilla-re systems structs docs

NetClient::OnMessageReceived

function · net · orchestration

Address
0x537b10 · 122 bytes, up to 0x537b89
Signature
void __thiscall (NetClient *this, void *source, uint32_t unused, CDataStore *msg)
Meaning
Counts received bytes and handles a pong inline; queues every other message as a copied data event
Confidence
verified, proof two
Finding
net/dispatch#network-thread-handoff

Finding: Network thread handoff in net: dispatch

The connection's handler on a network worker thread (threads) is the NetClient's slot 1, 0x537b10. It adds the packet's length to the received-byte count and peeks the opcode: SMSG_PONG (0x1dd) is handled there and then (session, Ping and latency); every other packet is copied into a queue node of type 0x12. Connecting, a failed connection and disconnecting queue nodes of types 0x13, 0x15 and 0x14. A node records the clock when it is queued, which is the time its handler gets.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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