2018-07-03 00:01:26 +02:00
|
|
|
#ifndef LOBBY_PACKET_CONTAINER_H_
|
|
|
|
#define LOBBY_PACKET_CONTAINER_H_
|
2017-08-08 13:53:47 +02:00
|
|
|
|
|
|
|
#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 {
|
2018-07-03 00:01:26 +02:00
|
|
|
namespace Network {
|
|
|
|
namespace Packets {
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-07-03 00:01:26 +02:00
|
|
|
typedef boost::shared_ptr< FFXIVPacketBase > FFXIVPacketBasePtr;
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-07-03 00:01:26 +02:00
|
|
|
class LobbyPacketContainer
|
|
|
|
{
|
|
|
|
public:
|
2018-08-29 21:40:59 +02:00
|
|
|
LobbyPacketContainer( uint8_t* encKey = nullptr );
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
~LobbyPacketContainer();
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
void addPacket( FFXIVPacketBasePtr pEntry );
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
uint16_t getSize() const;
|
|
|
|
|
|
|
|
uint8_t* getRawData( bool addstuff = true );
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-07-03 00:01:26 +02:00
|
|
|
private:
|
2018-08-29 21:40:59 +02:00
|
|
|
Core::Network::Packets::FFXIVARR_PACKET_HEADER m_header;
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
uint8_t* m_encKey;
|
2017-08-08 13:53:47 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
std::vector< FFXIVPacketBasePtr > m_entryList;
|
2018-07-03 00:01:26 +02:00
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
uint8_t m_dataBuf[0x2000];
|
2018-07-03 00:01:26 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2017-08-08 13:53:47 +02:00
|
|
|
}
|
|
|
|
#endif
|