mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Network): Rename AuthSession struct (#24428)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -329,7 +329,7 @@ bool WorldSocket::ReadHeaderHandler()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct AuthSession
|
struct ClientAuthSession
|
||||||
{
|
{
|
||||||
uint32 BattlegroupID = 0;
|
uint32 BattlegroupID = 0;
|
||||||
uint32 LoginServerType = 0;
|
uint32 LoginServerType = 0;
|
||||||
@@ -528,7 +528,7 @@ void WorldSocket::SendPacket(WorldPacket const& packet)
|
|||||||
|
|
||||||
void WorldSocket::HandleAuthSession(WorldPacket & recvPacket)
|
void WorldSocket::HandleAuthSession(WorldPacket & recvPacket)
|
||||||
{
|
{
|
||||||
std::shared_ptr<AuthSession> authSession = std::make_shared<AuthSession>();
|
std::shared_ptr<ClientAuthSession> authSession = std::make_shared<ClientAuthSession>();
|
||||||
|
|
||||||
// Read the content of the packet
|
// Read the content of the packet
|
||||||
recvPacket >> authSession->Build;
|
recvPacket >> authSession->Build;
|
||||||
@@ -552,7 +552,7 @@ void WorldSocket::HandleAuthSession(WorldPacket & recvPacket)
|
|||||||
_queryProcessor.AddCallback(LoginDatabase.AsyncQuery(stmt).WithPreparedCallback(std::bind(&WorldSocket::HandleAuthSessionCallback, this, authSession, std::placeholders::_1)));
|
_queryProcessor.AddCallback(LoginDatabase.AsyncQuery(stmt).WithPreparedCallback(std::bind(&WorldSocket::HandleAuthSessionCallback, this, authSession, std::placeholders::_1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSocket::HandleAuthSessionCallback(std::shared_ptr<AuthSession> authSession, PreparedQueryResult result)
|
void WorldSocket::HandleAuthSessionCallback(std::shared_ptr<ClientAuthSession> authSession, PreparedQueryResult result)
|
||||||
{
|
{
|
||||||
// Stop if the account is not found
|
// Stop if the account is not found
|
||||||
if (!result)
|
if (!result)
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ struct ClientPktHeader
|
|||||||
};
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
struct AuthSession;
|
struct ClientAuthSession;
|
||||||
|
|
||||||
class AC_GAME_API WorldSocket final : public Socket<WorldSocket>
|
class AC_GAME_API WorldSocket final : public Socket<WorldSocket>
|
||||||
{
|
{
|
||||||
@@ -113,7 +113,7 @@ private:
|
|||||||
void SendPacketAndLogOpcode(WorldPacket const& packet);
|
void SendPacketAndLogOpcode(WorldPacket const& packet);
|
||||||
void HandleSendAuthSession();
|
void HandleSendAuthSession();
|
||||||
void HandleAuthSession(WorldPacket& recvPacket);
|
void HandleAuthSession(WorldPacket& recvPacket);
|
||||||
void HandleAuthSessionCallback(std::shared_ptr<AuthSession> authSession, PreparedQueryResult result);
|
void HandleAuthSessionCallback(std::shared_ptr<ClientAuthSession> authSession, PreparedQueryResult result);
|
||||||
void LoadSessionPermissionsCallback(PreparedQueryResult result);
|
void LoadSessionPermissionsCallback(PreparedQueryResult result);
|
||||||
void SendAuthResponseError(uint8 code);
|
void SendAuthResponseError(uint8 code);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user