mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(net): wire up polling loop for realm connections
This commit is contained in:
parent
cf6bc34657
commit
5e2c1e7769
8 changed files with 178 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue