MarkSocketOpen
function · net · primitive
- Address
0x5b6330· 62 bytes, up to0x5b636d- Signature
void __fastcall (int32_t socket)- Meaning
- Sets a socket's bit in the open-socket bitmap under its lock; a negative socket does nothing
- Confidence
- verified, proof one
- Finding
- net/threads#socket-bitmap-and-callback-bracket
- Test
net::connection_mark_socket
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 1
Callees 2
- SCritSect::Enter storm
- SCritSect::Leave storm
Calls and jumps by a bare address, from tables/calls.tsv.