WowConnection::ConnectToAddress
function · net · orchestration
- Address
0x5b6e20· 28 bytes, up to0x5b6e3b- Signature
uint8_t __thiscall (WowConnection *this, uint32_t addr, uint16_t port, uint32_t timeoutMs)- Meaning
- Stores an address and port and connects through 0x5b6c80; returns 1
- 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 1
Calls and jumps by a bare address, from tables/calls.tsv.