benilla-re systems structs docs

s_netBytesSent

global · net

Address
0xc0d45c · 4 bytes, up to 0xc0d45f
Type
uint32_t
Meaning
Counts the opcode and body bytes NetClient::Send has sent, over all connections
Confidence
verified, proof one
Finding
net/wire#sending

Finding: Sending in net: the wire

NetClient::Send sends only in connection state 6 and only a non-empty packet, and counts its bytes before arming the cipher. WowConnection::Send refuses a packet unless the socket is connected (state 5). With nothing queued it frames the packet on the stack and calls send once; what send does not take, or all of it when other packets wait, goes to a queue the network thread drains. Both WSAEWOULDBLOCK and any other error queue the packet; the other error, or a queue reaching its limit, also sets the connection's state to 7, as closing it does. The send returns 0 when all went out, 1 when part did and 2 when none did.

The derivation is in the doc.