feat(net): wire up polling loop for realm connections

This commit is contained in:
fallenoak 2023-02-25 15:59:30 -06:00
parent cf6bc34657
commit 5e2c1e7769
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
8 changed files with 178 additions and 5 deletions

View file

@ -9,12 +9,25 @@ class RealmResponse;
class RealmConnection : public NetClient {
public:
// Types
struct REALMCONNECTIONNODE : TSLinkedNode<REALMCONNECTIONNODE> {
RealmConnection* connection;
};
// Static variables
SCritSect static s_AllRealmConnectionsCrit;
STORM_LIST(REALMCONNECTIONNODE) static s_AllRealmConnections;
// Static functions
int32_t static MessageHandler(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
void static PollNet();
// Member variables
RealmResponse* m_realmResponse;
// Virtual member functions
virtual int32_t HandleAuthChallenge(AuthenticationChallenge* challenge);
// Member functions
RealmConnection(RealmResponse* realmResponse);
void SetSelectedRealm(uint32_t a2, uint32_t a3, uint32_t a4);