1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 06:27:45 +00:00
sapphire/src/servers/sapphire_lobby/LobbyPacketContainer.h

44 lines
868 B
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _LobbyPacketContainer_H_
#define _LobbyPacketContainer_H_
#include <vector>
#include <string.h>
2018-03-06 22:22:19 +01:00
#include <Network/CommonNetwork.h>
#include <Util/Util.h>
2017-08-08 13:53:47 +02:00
#include "Forwards.h"
namespace Core {
namespace Network {
namespace Packets {
class GamePacket;
class LobbyPacketContainer
{
public:
LobbyPacketContainer( uint8_t* encKey = nullptr );
~LobbyPacketContainer();
void addPacket( GamePacketPtr pEntry );
uint16_t getSize() const;
uint8_t* getRawData( bool addstuff = true );
private:
Core::Network::Packets::FFXIVARR_PACKET_HEADER m_header;
uint8_t * m_encKey;
std::vector<GamePacket> m_entryList;
uint8_t m_dataBuf[0x2000];
};
}
}
}
#endif