ClientConnection
struct · net · 6948 bytes
- Vtable
0x80a398- Meaning
- Holds the world session: a RealmConnection with the status the screens poll
- Confidence
- verified, proof one
- Finding
- net/session#session-status
Finding: Session status in net: session
The session reports progress as a status: an operation, a code, a result flag and a done
flag. Setting a status stores the code and the result and marks it done; the screens poll it
and get the code's text from the localized string whose key is the code's name in an 83-entry
table, from RESPONSE_SUCCESS (0) through CHAR_NAME_SUCCESS (0x52). The codes used here are
RESPONSE_FAILED_TO_CONNECT (4), RESPONSE_CONNECTED (5), AUTH_OK (0x0c),
AUTH_WAIT_QUEUE (0x1b) and REALM_LIST_REALM_NOT_FOUND (0x26).
The derivation is in the doc.
Fields 38
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0004 | 64 | char[64] | m_account | Holds the account name copied from the logon object when it authenticates | verified, proof one | net/session#session-key |
0x0044 | 4 | uint32_t | m_loginServerId | Holds the dword from the logon link that the auth session packet sends | verified, proof one | net/session#session-challenge |
0x0048 | 40 | uint8_t[40] | m_sessionKey | Holds the 40-byte session key that arms the header cipher | verified, proof one | net/session#session-key |
0x0070 | 4 | uint32_t | m_netState | Holds the connection state: 2 idle, 5 connecting, 6 connected, 7 closing | verified, proof one | net/session#connecting |
0x0074 | 3312 | void *[828] | m_handlers | Holds the packet handler of each opcode, null for none | verified, proof two | net/dispatch#handler-tables |
0x0d64 | 3312 | void *[828] | m_handlerContexts | Holds the context each handler is called with | verified, proof two | net/dispatch#handler-tables |
0x1a54 | 4 | void * | m_eventQueue | Holds the queue of events the network thread hands to the main thread | verified, proof two | net/dispatch#main-thread-drain |
0x1a58 | 4 | void * | m_wowConnection | Holds the WowConnection that carries the socket | verified, proof one | net/dispatch#network-thread-handoff |
0x1a5c | 4 | uint32_t | m_refCount | Holds the references: one per queued event and one for the poll in progress; zero on a marked client deletes it | verified, proof two | net/dispatch#main-thread-drain |
0x1a60 | 1 | uint8_t | m_deleting | Holds 1 once the connection is marked for deletion | verified, proof two | net/dispatch#main-thread-drain |
0x1a64 | 4 | uint32_t | m_lastPingTime | Holds the clock of the last ping or of connecting | verified, proof one | net/session#ping-and-latency |
0x1a68 | 4 | uint32_t | m_pingSequence | Holds the sequence number of the last ping sent | verified, proof one | net/session#ping-and-latency |
0x1a6c | 64 | uint32_t[16] | m_latencySamples | Holds the ring of latency samples | verified, proof one | net/session#ping-and-latency |
0x1aac | 4 | uint32_t | m_sampleRead | Holds the read index of the sample ring | verified, proof one | net/session#ping-and-latency |
0x1ab0 | 4 | uint32_t | m_sampleWrite | Holds the write index of the sample ring | verified, proof one | net/session#ping-and-latency |
0x1ab4 | 4 | uint32_t | m_bytesSent | Holds the bytes sent since connecting | verified, proof one | net/session#ping-sequence-and-statistics |
0x1ab8 | 4 | uint32_t | m_bytesReceived | Holds the bytes received since connecting | verified, proof one | net/session#ping-sequence-and-statistics |
0x1abc | 4 | uint32_t | m_connectTime | Holds the time the connection came up | verified, proof one | net/session#ping-sequence-and-statistics |
0x1ac0 | 24 | uint8_t[24] | m_statsLock | Holds the lock around the ping and byte statistics | verified, proof one | net/session#ping-sequence-and-statistics |
0x1ad8 | 4 | void * | m_objectManager | Holds the object manager block ClntObjMgrCreate stores, null from the NetClient constructor | verified, proof one | net/session#netclient-construction |
0x1adc | 4 | void * | m_response | Holds the response object the connection notifies of replies | verified, proof two | net/connection#response-object |
0x1ae4 | 4 | uint32_t | m_characterCount | Holds the number of character records read from the last character list | verified, proof two | net/connection#character-list-packet |
0x1ae8 | 4 | void * | m_characters | Holds the array of 0x110-byte character records | verified, proof two | net/connection#character-list-packet |
0x1aec | 1 | uint8_t | m_authenticated | Holds 1 after an auth response of AUTH_OK; nothing reads it | verified, proof one | net/session#session-response |
0x1af0 | 4 | uint32_t | m_queuePosition | Holds the queue position the last wait-queue auth result carried | verified, proof two | net/connection#response-object |
0x1af4 | 4 | uint32_t | m_billingTimeRemaining | Holds the billing minutes remaining the auth response carried, read by 0x5b41b0 | verified, proof one | ui/billing#the-billing-group |
0x1af8 | 4 | uint32_t | m_billingTimeRested | Holds the billing rested time the auth response carried, unwritten when fewer than 9 bytes follow | verified, proof one | ui/billing#the-billing-group |
0x1afc | 1 | uint8_t | m_billingFlags | Holds the plan flags: mask 0x16 picks the plan, 0x02 also stops the warning, 0x08 the IGR plan, 0x20 second value | verified, proof one | ui/billing#the-billing-group |
0x1b00 | 4 | uint32_t | m_connected | Holds 1 while the world socket is connected: set on connect by 0x5aaa90, cleared on a drop | inferred | glue/script#server-name-and-connection |
0x1b04 | 4 | uint32_t | m_loginSent | Holds 1 from sending the player login until the world is left | verified, proof two | net/connection#character-login |
0x1b08 | 4 | uint32_t | m_statusDone | Holds 1 once the current operation's status is set | verified, proof one | net/session#session-status |
0x1b0c | 4 | uint32_t | m_statusResult | Holds the status's result flag, 1 for success | verified, proof one | net/session#session-status |
0x1b10 | 4 | uint32_t | m_operation | Holds the operation the status belongs to | verified, proof one | net/session#session-status |
0x1b14 | 4 | uint32_t | m_statusCode | Holds the status code, an index into the 83 status names | verified, proof one | net/session#session-status |
0x1b18 | 4 | uint32_t | m_worldHandle | Holds the handle set when the world is entered, zero outside it | verified, proof one | net/connection#character-login |
0x1b1c | 1 | uint8_t | m_quitAfterLogout | Holds the quit flag of the pending logout | verified, proof two | net/connection#logout |
0x1b1d | 1 | uint8_t | m_logoutPending | Holds 1 while a logout is requested and not yet answered | verified, proof two | net/connection#logout |
0x1b20 | 4 | void * | m_cleanup | Holds the operation cleanup callback, run once | verified, proof two | net/connection#operations |
Globals of this type
0xc28128s_clientConnection