benilla-re systems structs docs

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

offsetsizetypenamemeaningconfidencefinding
0x000464char[64]m_accountHolds the account name copied from the logon object when it authenticatesverified, proof onenet/session#session-key
0x00444uint32_tm_loginServerIdHolds the dword from the logon link that the auth session packet sendsverified, proof onenet/session#session-challenge
0x004840uint8_t[40]m_sessionKeyHolds the 40-byte session key that arms the header cipherverified, proof onenet/session#session-key
0x00704uint32_tm_netStateHolds the connection state: 2 idle, 5 connecting, 6 connected, 7 closingverified, proof onenet/session#connecting
0x00743312void *[828]m_handlersHolds the packet handler of each opcode, null for noneverified, proof twonet/dispatch#handler-tables
0x0d643312void *[828]m_handlerContextsHolds the context each handler is called withverified, proof twonet/dispatch#handler-tables
0x1a544void *m_eventQueueHolds the queue of events the network thread hands to the main threadverified, proof twonet/dispatch#main-thread-drain
0x1a584void *m_wowConnectionHolds the WowConnection that carries the socketverified, proof onenet/dispatch#network-thread-handoff
0x1a5c4uint32_tm_refCountHolds the references: one per queued event and one for the poll in progress; zero on a marked client deletes itverified, proof twonet/dispatch#main-thread-drain
0x1a601uint8_tm_deletingHolds 1 once the connection is marked for deletionverified, proof twonet/dispatch#main-thread-drain
0x1a644uint32_tm_lastPingTimeHolds the clock of the last ping or of connectingverified, proof onenet/session#ping-and-latency
0x1a684uint32_tm_pingSequenceHolds the sequence number of the last ping sentverified, proof onenet/session#ping-and-latency
0x1a6c64uint32_t[16]m_latencySamplesHolds the ring of latency samplesverified, proof onenet/session#ping-and-latency
0x1aac4uint32_tm_sampleReadHolds the read index of the sample ringverified, proof onenet/session#ping-and-latency
0x1ab04uint32_tm_sampleWriteHolds the write index of the sample ringverified, proof onenet/session#ping-and-latency
0x1ab44uint32_tm_bytesSentHolds the bytes sent since connectingverified, proof onenet/session#ping-sequence-and-statistics
0x1ab84uint32_tm_bytesReceivedHolds the bytes received since connectingverified, proof onenet/session#ping-sequence-and-statistics
0x1abc4uint32_tm_connectTimeHolds the time the connection came upverified, proof onenet/session#ping-sequence-and-statistics
0x1ac024uint8_t[24]m_statsLockHolds the lock around the ping and byte statisticsverified, proof onenet/session#ping-sequence-and-statistics
0x1ad84void *m_objectManagerHolds the object manager block ClntObjMgrCreate stores, null from the NetClient constructorverified, proof onenet/session#netclient-construction
0x1adc4void *m_responseHolds the response object the connection notifies of repliesverified, proof twonet/connection#response-object
0x1ae44uint32_tm_characterCountHolds the number of character records read from the last character listverified, proof twonet/connection#character-list-packet
0x1ae84void *m_charactersHolds the array of 0x110-byte character recordsverified, proof twonet/connection#character-list-packet
0x1aec1uint8_tm_authenticatedHolds 1 after an auth response of AUTH_OK; nothing reads itverified, proof onenet/session#session-response
0x1af04uint32_tm_queuePositionHolds the queue position the last wait-queue auth result carriedverified, proof twonet/connection#response-object
0x1af44uint32_tm_billingTimeRemainingHolds the billing minutes remaining the auth response carried, read by 0x5b41b0verified, proof oneui/billing#the-billing-group
0x1af84uint32_tm_billingTimeRestedHolds the billing rested time the auth response carried, unwritten when fewer than 9 bytes followverified, proof oneui/billing#the-billing-group
0x1afc1uint8_tm_billingFlagsHolds the plan flags: mask 0x16 picks the plan, 0x02 also stops the warning, 0x08 the IGR plan, 0x20 second valueverified, proof oneui/billing#the-billing-group
0x1b004uint32_tm_connectedHolds 1 while the world socket is connected: set on connect by 0x5aaa90, cleared on a dropinferredglue/script#server-name-and-connection
0x1b044uint32_tm_loginSentHolds 1 from sending the player login until the world is leftverified, proof twonet/connection#character-login
0x1b084uint32_tm_statusDoneHolds 1 once the current operation's status is setverified, proof onenet/session#session-status
0x1b0c4uint32_tm_statusResultHolds the status's result flag, 1 for successverified, proof onenet/session#session-status
0x1b104uint32_tm_operationHolds the operation the status belongs toverified, proof onenet/session#session-status
0x1b144uint32_tm_statusCodeHolds the status code, an index into the 83 status namesverified, proof onenet/session#session-status
0x1b184uint32_tm_worldHandleHolds the handle set when the world is entered, zero outside itverified, proof onenet/connection#character-login
0x1b1c1uint8_tm_quitAfterLogoutHolds the quit flag of the pending logoutverified, proof twonet/connection#logout
0x1b1d1uint8_tm_logoutPendingHolds 1 while a logout is requested and not yet answeredverified, proof twonet/connection#logout
0x1b204void *m_cleanupHolds the operation cleanup callback, run onceverified, proof twonet/connection#operations

Globals of this type