benilla-re systems structs docs

s_netWakeSocket

global · net

Address
0x85e9e4 · 4 bytes, up to 0x85e9e7
Type
uint32_t
Meaning
Holds the write end of the network thread's wake socket pair
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.