WowConnection::CompleteConnect
function · net · host
- Address
0x5b60a0· 305 bytes, up to0x5b61d0- Signature
void __thiscall (WowConnection *this)- Meaning
- Finishes a connect from SO_ERROR: on error closes and reports failure; else state 5, records both addresses, reports it
- Confidence
- verified, proof one
- Finding
- net/wire#connecting
Finding: Connecting in net: the wire
WowConnection::Connect closes any old socket, creates one, sets it non-blocking, lists the connection for the select loop, enters state 2 and calls connect. A result below zero that is not WSAEWOULDBLOCK removes the connection from the list, closes the socket and sets state 8, and nothing is reported to the owner. Otherwise the socket's write or exception event runs CompleteConnect, which reads SO_ERROR: a non-zero error closes the socket, sets state 6 and calls the owner's slot 3, the connect failure; zero sets state 5, stores the peer and local addresses (+0x78, +0x88) and calls the owner's slot 2, connected. No timer ends a dial: the 5,000 ms the logon link passes is never read.
The derivation is in the doc.
Callers 2
Callees 10
- OsGetAsyncTimeMs core
- CloseTcpSocket net
- j_SInterlockedIncrement net
- WowConnection::Release net
- WowConnection::BeginCallback net
- WowConnection::EndCallback net
- WowConnection::SetState net
- WowConnectionNet::Remove net
- SCritSect::Enter storm
- SCritSect::Leave storm
Calls and jumps by a bare address, from tables/calls.tsv.