benilla-re systems structs docs

NetClient::HandleIdle

function · net · primitive

Address
0x537ff0 · 35 bytes, up to 0x538012
Signature
void __thiscall (NetClient *this)
Meaning
Pings once 30000 ms or more have passed since the last ping or connect, as a signed 32-bit difference
Confidence
verified, proof one
Name from
the community database (idb)
Finding
net/session#ping-and-latency
Test
net::netclient_idle

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 2

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