mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-27 16:12:13 +03:00
feat(net): handle connect callback in client connection
This commit is contained in:
2 files changed
+13
No files matched your search
@@ -163,6 +163,16 @@ int32_t ClientConnection::Disconnect() {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t ClientConnection::HandleConnect() {
|
||||||
|
this->Complete(1, 5);
|
||||||
|
|
||||||
|
this->m_connected = 1;
|
||||||
|
|
||||||
|
// TODO WardenClient_Initialize();
|
||||||
|
|
||||||
|
return this->NetClient::HandleConnect();
|
||||||
|
}
|
||||||
|
|
||||||
void ClientConnection::Initiate(WOWCS_OPS op, int32_t errorCode, void (*cleanup)()) {
|
void ClientConnection::Initiate(WOWCS_OPS op, int32_t errorCode, void (*cleanup)()) {
|
||||||
this->m_cleanup = cleanup;
|
this->m_cleanup = cleanup;
|
||||||
this->m_statusCop = op;
|
this->m_statusCop = op;
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ class ClientConnection : public RealmConnection {
|
|||||||
int32_t m_errorCode = 0;
|
int32_t m_errorCode = 0;
|
||||||
void (*m_cleanup)() = nullptr;
|
void (*m_cleanup)() = nullptr;
|
||||||
|
|
||||||
|
// Virtual member functions
|
||||||
|
virtual int32_t HandleConnect();
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
ClientConnection(RealmResponse* realmResponse)
|
ClientConnection(RealmResponse* realmResponse)
|
||||||
: RealmConnection(realmResponse)
|
: RealmConnection(realmResponse)
|
||||||
|
|||||||
Reference in new issue
Block a user