WowConnection::Connect
function · net · host
- Address
0x5b6c80· 263 bytes, up to0x5b6d86- Signature
void __thiscall (WowConnection *this)- Meaning
- Opens a non-blocking socket and connects it to the stored address and port: state 2, or 8 when that fails
- 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 3
Callees 7
- CreateTcpSocket net
- CloseTcpSocket net
- WowConnection::SetState net
- WowConnectionNet::Add net
- WowConnectionNet::Remove net
- SCritSect::Enter storm
- SCritSect::Leave storm
Calls and jumps by a bare address, from tables/calls.tsv.