benilla-re systems structs docs

LoginOnConnectFailed

function · net · orchestration

Address
0x5b1b70 · 82 bytes, up to 0x5b1bc1
Signature
bool __thiscall (void *this)
Meaning
Reports LOGIN_STATE_FAILED (5) with LOGIN_SERVER_DOWN (0xc), then runs the disconnect, returning false
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 2

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