WowConnection::ReadFramedMessages
function · net · primitive
- Address
0x5b65f0· 1167 bytes, up to0x5b6a7e- Signature
void __thiscall (WowConnection *this)- Meaning
- Reads frames: decodes the 2- or 3-byte big-endian length, deciphers header and opcode bytes, hands each body on
- Confidence
- verified, proof one
- Finding
- net/wire#size-header
- Test
net::cipher_recv_direct,net::header_decode
Finding: Size header in net: the wire
A world packet starts with its size N, the count of opcode and body bytes, big-endian: two bytes, N >> 8 and N & 0xff, up to 32,767 (a signed compare); above that three, the low bytes of (N >> 16) | 0x80, N >> 8 and N. The first byte takes no mask: a size of 2^23 or more puts its bit 23 on the flag bit, already set, and drops bits 24 to 31: the header carries N modulo 2^23. A reader takes the form from the first byte's top bit and reads (b0 & 0x7f) << 16 | b1 << 8 | b2. The opcode goes out as four bytes little-endian and comes in as two.
The derivation is in the doc.
Callers 1
Callees 13
- OsGetAsyncTimeMs core
- CloseTcpSocket net
- WowConnection::Disconnect net
- WowConnection::AllocSendBuffer net
- WowConnection::FreeSendBuffer net
- WowConnection::BeginCallback net
- WowConnection::EndCallback net
- WowConnection::SetState net
- WowConnectionNet::Remove net
- SMemAlloc storm
- SMemReAlloc storm
- SCritSect::Enter storm
- SCritSect::Leave storm
Calls and jumps by a bare address, from tables/calls.tsv.