benilla-re systems structs docs

NETEVENTQUEUE::AddEvent

function · net · primitive

Address
0x538790 · 218 bytes, up to 0x538869
Signature
void __thiscall (NETEVENTQUEUE *this, uint32_t type, void *source, NetClient *client, const void *data, uint32_t size)
Meaning
Appends an event with a private copy of the data and a timestamp, and takes a reference on the client
Confidence
verified, proof two
Finding
net/dispatch#network-thread-handoff
Test
net::netclient_add_event

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 5

Callees 6

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