NetClient::OnConnected
function · net · orchestration
- Address
0x537b90· 101 bytes, up to0x537bf4- Signature
void __thiscall (NetClient *this, void *source, uint32_t b, uint32_t time, uint32_t d)- Meaning
- Resets the byte counters and ping ring, stamps the ping clock, sets the stats epoch, and queues a connect event
- 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 4
- OsGetAsyncTimeMs core
- NETEVENTQUEUE::AddEvent net
- SCritSect::Enter storm
- SCritSect::Leave storm
Calls and jumps by a bare address, from tables/calls.tsv.