mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 00:27:44 +00:00
44 lines
754 B
C++
44 lines
754 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 Core {
|
|
namespace Network {
|
|
namespace Packets {
|
|
|
|
typedef boost::shared_ptr< FFXIVPacketBase > FFXIVPacketBasePtr;
|
|
|
|
class LobbyPacketContainer
|
|
{
|
|
public:
|
|
LobbyPacketContainer( uint8_t* encKey = nullptr );
|
|
~LobbyPacketContainer();
|
|
|
|
void addPacket( FFXIVPacketBasePtr 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< FFXIVPacketBasePtr > m_entryList;
|
|
|
|
uint8_t m_dataBuf[0x2000];
|
|
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
#endif
|