benilla-re systems structs docs

NETEVENTQUEUENODE

struct · net · 24 bytes

Meaning
Holds one queued network event: link, type, time, data copy and length
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.

Fields 4

offsetsizetypenamemeaningconfidencefinding
0x00084uint32_tm_typeHolds the event type, 0x12 to 0x16verified, proof twonet/dispatch#network-thread-handoff
0x000c4uint32_tm_timeHolds the client clock when the node was queuedverified, proof twonet/dispatch#network-thread-handoff
0x00104void *m_dataHolds the node's own copy of the packet bytesverified, proof twonet/dispatch#network-thread-handoff
0x00144uint32_tm_lengthHolds the length of the copied bytesverified, proof twonet/dispatch#network-thread-handoff