mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 08:13:50 +03:00
feat(net): implement GruntLogin::Reconnect
This commit is contained in:
3 files changed
+8
-6
No files matched your search
@@ -510,7 +510,7 @@ int32_t Grunt::ClientLink::CmdXferInitiate(CDataStore& msg) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Grunt::ClientLink::Connect(const char* a2) {
|
||||
void Grunt::ClientLink::Connect(const char* loginServer) {
|
||||
if (this->m_state) {
|
||||
return;
|
||||
}
|
||||
@@ -523,11 +523,11 @@ void Grunt::ClientLink::Connect(const char* a2) {
|
||||
this->m_connection = connection;
|
||||
this->m_connection->SetType(WOWC_TYPE_STREAM);
|
||||
|
||||
auto port = SStrChr(a2, ':');
|
||||
auto port = SStrChr(loginServer, ':');
|
||||
if (port) {
|
||||
this->m_connection->Connect(a2, 5000);
|
||||
this->m_connection->Connect(loginServer, 5000);
|
||||
} else {
|
||||
this->m_connection->Connect(a2, 3724, 5000);
|
||||
this->m_connection->Connect(loginServer, 3724, 5000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ class Grunt::ClientLink : public WowConnectionResponse, Grunt::Pending, Grunt::T
|
||||
int32_t CmdRealmList(CDataStore& msg);
|
||||
int32_t CmdXferData(CDataStore& msg);
|
||||
int32_t CmdXferInitiate(CDataStore& msg);
|
||||
void Connect(const char* a2);
|
||||
void Connect(const char* loginServer);
|
||||
void Disconnect();
|
||||
void GetRealmList();
|
||||
void LogonNewSession(const Logon& logon);
|
||||
|
||||
Reference in new issue
Block a user