benilla-re systems structs docs

NetClient::GetNetStats

function · net · primitive

Address
0x537f20 · 201 bytes, up to 0x537fe8
Signature
void __thiscall (NetClient *this, float *inKBps, float *outKBps, uint32_t *latencyMs)
Meaning
Returns KB/s received and sent since the epoch and the truncated mean of the ring's round trips, 0 when empty
Confidence
verified, proof one
Finding
net/session#ping-and-latency
Test
net::netclient_stats

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 2

Callees 3

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