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
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0008 | 4 | uint32_t | m_type | Holds the event type, 0x12 to 0x16 | verified, proof two | net/dispatch#network-thread-handoff |
0x000c | 4 | uint32_t | m_time | Holds the client clock when the node was queued | verified, proof two | net/dispatch#network-thread-handoff |
0x0010 | 4 | void * | m_data | Holds the node's own copy of the packet bytes | verified, proof two | net/dispatch#network-thread-handoff |
0x0014 | 4 | uint32_t | m_length | Holds the length of the copied bytes | verified, proof two | net/dispatch#network-thread-handoff |