benilla-re systems structs docs

s_netClientCount

global · net

Address
0xc0d4b4 · 4 bytes, up to 0xc0d4b7
Type
uint32_t
Meaning
Counts the initialized NetClient objects: the first starts the network platform, the last stops it
Confidence
verified, proof two
Finding
net/dispatch#handler-tables

Finding: Handler tables in net: dispatch

Each NetClient holds a handler table at +0x74 and a context table at +0xd64, 828 dwords each, so opcodes 0x000 to 0x33b. NetClient::Initialize zeroes both. Registering stores the handler and the context at the opcode's index; clearing stores zeros. Neither checks the opcode. ClientServices::SetMessageHandler and ClearMessageHandler do the same on the client 0x5ab490 returns, taking the opcode in ecx, the handler in edx and the context on the stack.

The derivation is in the doc.