benilla-re systems structs docs

ClientLink::OnCantConnect

function · net · orchestration

Address
0x5bb360 · 68 bytes, up to 0x5bb3a3
Signature
void __thiscall (ClientLink *this, WowConnection *conn, uint32_t time, const void *address)
Meaning
Releases the connection, sets state 0, tells the link's owner the dial failed, and deletes the link when told to
Confidence
verified, proof one
Finding
net/logonlink#logon-link-events

Finding: Logon link events in net: logon link

The link tells the logon object when it connects, cannot connect and disconnects, through slots of the vtable 0x80a5d4. A dial that fails, by a socket error or an empty address list, runs the link's slot 3 (0x5bb360): it releases the connection and calls the logon object's slot 2, 0x5b1b70. That reports LOGIN_STATE_FAILED (5) with LOGIN_SERVER_DOWN (0x0c) to the listener, then calls slot 1, 0x5b1bd0, which reports LOGIN_STATE_DISCONNECTED (11) with code 0. When the byte +4 is clear, so the link never reached the post-proof state, 0x5b1bd0 also marks +8 and calls slot 10 with 0xff, which reports state 5 with code 0x14. It then clears +5 and +4 and returns false. 0x5b3320 disconnects the link when +5 is set.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.