Core/Battle.net: Defined more communication channels

This commit is contained in:
Shauren
2014-06-21 23:45:06 +02:00
parent 01094be1d7
commit ec49d510fc
2 changed files with 14 additions and 7 deletions

View File

@@ -33,8 +33,15 @@ namespace Battlenet
enum Channel
{
AUTHENTICATION = 0,
CREEP = 1,
WOW = 2
CONNECTION = 1,
WOW = 2,
FRIEND = 3,
PRESENCE = 4,
CHAT = 5,
SUPPORT = 7,
ACHIEVEMENT = 8,
CACHE = 11,
PROFILE = 14
};
enum AuthOpcode
@@ -48,7 +55,7 @@ namespace Battlenet
SMSG_AUTH_PROOF_REQUEST = 0x2
};
enum CreepOpcodes
enum ConnectionOpcodes
{
CMSG_PING = 0x0,
CMSG_ENABLE_ENCRYPTION = 0x5,
@@ -261,7 +268,7 @@ namespace Battlenet
class Pong final : public ServerPacket
{
public:
Pong() : ServerPacket(PacketHeader(SMSG_PONG, CREEP))
Pong() : ServerPacket(PacketHeader(SMSG_PONG, CONNECTION))
{
}

View File

@@ -36,9 +36,9 @@ std::map<Battlenet::PacketHeader, Battlenet::Socket::PacketHandler> InitHandlers
handlers[Battlenet::PacketHeader(Battlenet::CMSG_AUTH_RECONNECT, Battlenet::AUTHENTICATION)] = &Battlenet::Socket::HandleAuthReconnect;
handlers[Battlenet::PacketHeader(Battlenet::CMSG_AUTH_PROOF_RESPONSE, Battlenet::AUTHENTICATION)] = &Battlenet::Socket::HandleAuthProofResponse;
handlers[Battlenet::PacketHeader(Battlenet::CMSG_PING, Battlenet::CREEP)] = &Battlenet::Socket::HandlePing;
handlers[Battlenet::PacketHeader(Battlenet::CMSG_ENABLE_ENCRYPTION, Battlenet::CREEP)] = &Battlenet::Socket::HandleEnableEncryption;
handlers[Battlenet::PacketHeader(Battlenet::CMSG_DISCONNECT, Battlenet::CREEP)] = &Battlenet::Socket::HandleDisconnect;
handlers[Battlenet::PacketHeader(Battlenet::CMSG_PING, Battlenet::CONNECTION)] = &Battlenet::Socket::HandlePing;
handlers[Battlenet::PacketHeader(Battlenet::CMSG_ENABLE_ENCRYPTION, Battlenet::CONNECTION)] = &Battlenet::Socket::HandleEnableEncryption;
handlers[Battlenet::PacketHeader(Battlenet::CMSG_DISCONNECT, Battlenet::CONNECTION)] = &Battlenet::Socket::HandleDisconnect;
handlers[Battlenet::PacketHeader(Battlenet::CMSG_REALM_UPDATE_SUBSCRIBE, Battlenet::WOW)] = &Battlenet::Socket::HandleRealmUpdateSubscribe;
handlers[Battlenet::PacketHeader(Battlenet::CMSG_JOIN_REQUEST, Battlenet::WOW)] = &Battlenet::Socket::HandleRealmJoinRequest;