benilla-re systems structs docs

Grunt::Pending::Expire

function · net · primitive

Address
0x5b8650 · 332 bytes, up to 0x5b879b
Signature
void __thiscall (Grunt::Pending *this, uint8_t all)
Meaning
Expires pending requests: skips untimed ones, stops at a fresh one, frees the first expired one, one per call
Confidence
verified, proof one
Finding
net/logonlink#pending-request-expiry
Test
net::grunt_pending_expire

Finding: Pending request expiry in net: logon link

ClientLink::ClientLink builds a Grunt::Pending (0x5b8490): a timeout at +4 and a list of 24-byte requests linked at their first bytes, each with a time at +0x10, 0 for none. ClientLink::OnTimer (0x5bb3d0) calls 0x5b8650(0) each tick. The walk skips a time of 0, stops at the first request younger than the timeout, and moves the first older one to a local list; its link then ends the walk, so one request expires per call, going to slot 0 of the owner and then freed. With force the first request goes whatever its time. The only adder, 0x5b84e0, is called from the unreached ServerLink::ProveSession, so the client's list stays empty.

The derivation is in the doc.

Callers 3

Callees 8

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