NetClient::HandlePong
function · net · primitive
- Address
0x537d60· 171 bytes, up to0x537e0a- Signature
void __thiscall (NetClient *this, CDataStore *msg)- Meaning
- Records a pong: a matching sequence stores now minus ping time in the 16-slot ring; a stale one is logged
- Confidence
- verified, proof one
- Finding
- net/session#ping-and-latency
- Test
net::netclient_pong
Finding: Ping and latency in net: session
Every 30 seconds after the last ping, measured from connecting, the client sends CMSG_PING
(0x1dc): a sequence number, incremented first, and in state 6 the sample just before the
ring's write index, or 0 when that index is 0: before the first pong and after every 16th, when
the index wraps. SMSG_PONG (0x1dd) with the current number stores
now − sent in a ring of 16 on a network worker thread (threads); a pong with another number is logged and
ignored. The latency the interface reads is the integer mean of the samples present, at
most 15, or 0; the rates are kilobytes per second since connecting.
The derivation is in the doc.
Callers 1
Callees 5
- CDataStore::GetUInt32_2 base
- OsGetAsyncTimeMs core
- ConsolePrintf console
- SCritSect::Enter storm
- SCritSect::Leave storm
Calls and jumps by a bare address, from tables/calls.tsv.