mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 14:07:46 +00:00
42 lines
787 B
C++
42 lines
787 B
C++
#ifndef LOBBY_PACKET_CONTAINER_H_
|
|
#define LOBBY_PACKET_CONTAINER_H_
|
|
|
|
#include <vector>
|
|
#include <string.h>
|
|
|
|
#include <Network/CommonNetwork.h>
|
|
#include <Util/Util.h>
|
|
|
|
#include "Forwards.h"
|
|
|
|
namespace Sapphire::Lobby::Network::Packets
|
|
{
|
|
|
|
using FFXIVPacketBasePtr = std::shared_ptr< Common::Network::Packets::FFXIVPacketBase >;
|
|
|
|
class LobbyPacketContainer
|
|
{
|
|
public:
|
|
LobbyPacketContainer( uint8_t* encKey = nullptr );
|
|
|
|
~LobbyPacketContainer();
|
|
|
|
void addPacket( FFXIVPacketBasePtr pEntry );
|
|
|
|
uint16_t getSize() const;
|
|
|
|
uint8_t* getRawData( bool addstuff = true );
|
|
|
|
private:
|
|
Common::Network::Packets::FFXIVARR_PACKET_HEADER m_header;
|
|
|
|
uint8_t* m_encKey;
|
|
|
|
std::vector< FFXIVPacketBasePtr > m_entryList;
|
|
|
|
uint8_t m_dataBuf[0x2000];
|
|
|
|
};
|
|
|
|
}
|
|
#endif
|