diff options
author | DDuarte <dnpd.dd@gmail.com> | 2014-10-30 02:04:54 +0000 |
---|---|---|
committer | DDuarte <dnpd.dd@gmail.com> | 2014-10-30 02:04:54 +0000 |
commit | 7b2274a7447973f698426bcdb51c8faad6ba1296 (patch) | |
tree | 51bc69b2e59ea157caca19e09c508f5a8fe113a9 /src/server/game/Server/Packet.cpp | |
parent | 386b97c4851ca614bfac3916502e2e2a26dd9fd6 (diff) |
Core/Networking: PoC changes to the way packets are handled
This is a rewrite of the way we send SMSG opcodes, the reasoning behind this is to make fixing packets sent in multiple places easier, and allow for clearer documentation of the packet fields.
Included SMSG_AUTH_RESPONSE and SMSG_AUCTION_COMMAND_RESULT as two examples.
Diffstat (limited to 'src/server/game/Server/Packet.cpp')
-rw-r--r-- | src/server/game/Server/Packet.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/server/game/Server/Packet.cpp b/src/server/game/Server/Packet.cpp new file mode 100644 index 00000000000..bff5643f410 --- /dev/null +++ b/src/server/game/Server/Packet.cpp @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "Packet.h" + +WorldPackets::ServerPacket::ServerPacket(OpcodeServer opcode, size_t initialSize = 200) : Packet(WorldPacket(opcode, initialSize)) +{ +} |