benilla-re systems structs docs

NetClient::OnDisconnected

function · net · orchestration

Address
0x537c00 · 42 bytes, up to 0x537c29
Signature
void __thiscall (NetClient *this, void *source, uint32_t b, uint32_t c)
Meaning
Samples the net stats and discards them, then queues a disconnect event when the queue exists
Confidence
verified, proof one
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 2

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