WowConnection::BeginCallback
function · net · primitive
- Address
0x5b7260· 43 bytes, up to0x5b728a- Signature
void __thiscall (WowConnection *this)- Meaning
- Counts one more running callback on a connection and records the thread
- Confidence
- verified, proof one
- Finding
- net/threads#socket-bitmap-and-callback-bracket
- Test
net::connection_callback_bracket
Finding: Socket bitmap and callback bracket in net: threads
MarkSocketOpen (0x5b6330, socket in ecx) sets bit fd & 31 of word fd >> 5 of the bitmap [0xc2a378], under the lock 0xc2a354; a negative socket does nothing. WowConnection::BeginCallback (0x5b7260) adds one to the running callbacks at +0xb4 and records the thread at +0xb8; EndCallback (0x5b7290) subtracts one and, when +0xbc holds a value, moves it to +0x14 and clears +0xbc, whatever the count. Both run under the connection's lock +0x9c.
The derivation is in the doc.
Callers 6
- WowConnection::HandleClose net
- WowConnection::CompleteConnect net
- WowConnection::AcceptConnections net
- WowConnection::HandleWritable net
- WowConnection::ReadFramedMessages net
- WowConnection::ReadRawData net
Callees 3
- GetCurrentThreadIdThunk unassigned
- SCritSect::Enter storm
- SCritSect::Leave storm
Calls and jumps by a bare address, from tables/calls.tsv.