CGlueMgr::NetDisconnectHandler
function · glue · orchestration
- Address
0x46c540· 345 bytes, up to0x46c698- Signature
uint32_t __fastcall (NetClient *connection, uint32_t unused)- Meaning
- Handles a session disconnect: reconnects when asked, else tears the game down and reports it; returns 1
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- glue/flow#disconnect-handler
Finding: Disconnect handler in glue: the screen flow
CGlueMgr::NetDisconnectHandler (0x46c540), which the session's disconnect runs, zeroes the
state, noting whether it was 2. An expected disconnect (0xb41d98) clears the flag and, when
0xb41d9c asks for a reconnect, clears it, enters state 2, opens CANCEL with GAME_SERVER_LOGIN
and connects. Otherwise a connection that is not the current one is ignored (0x5abd40); the game
is destroyed (0x401ee0), the mouse mode reset and a suspended glue resumed. Out of state 2 it
fires DISCONNECTED_FROM_SERVER (2); in state 2 a done, failed operation opens OKAY with its text
instead, anything else fires 2. Either way the logon is cancelled. Returns 1.
The derivation is in the doc.
Callers 1
Callees 13
- ClientDestroyGame client
- EventSetMouseMode core
- CGlueMgr::Resume glue
- ClientConnection::PollStatus net
- ClientConnection::Connect net
- ClientServices::GetCurrent net
- ClientServices::GetLoginSession net
- ClientServices::ValidDisconnect net
- CancelLogon net
- ConsolePrintf console
- FrameScript_GetText ui
- FrameScript_SignalEvent ui
- FrameScript_SignalEvent2 ui
Calls and jumps by a bare address, from tables/calls.tsv.