benilla-re systems structs docs

NetClient::Ping

function · net · primitive

Address
0x537e10 · 197 bytes, up to 0x537ed4
Signature
void __thiscall (NetClient *this)
Meaning
Sends opcode 0x1dc with the incremented sequence and, in state 6, the round trip before the write index, 0 when it is 0
Confidence
verified, proof one
Finding
net/session#ping-and-latency
Test
net::netclient_ping

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 6

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