CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace ionet {
38 explicit PacketPayload(
const std::shared_ptr<const Packet>& pPacket);
48 const std::vector<RawBuffer>&
buffers()
const;
PacketPayload()
Creates a default (empty) packet payload.
Definition: PacketPayload.cpp:25
std::vector< RawBuffer > m_buffers
Definition: PacketPayload.h:56
std::vector< std::shared_ptr< const void > > m_entities
Definition: PacketPayload.h:59
const std::vector< RawBuffer > & buffers() const
Packet data.
Definition: PacketPayload.cpp:55
const PacketHeader & header() const
Packet header.
Definition: PacketPayload.cpp:51
PacketType
An enumeration of known packet types.
Definition: PacketType.h:171
A packet payload builder for creating payloads composed of heterogeneous data.
Definition: PacketPayloadBuilder.h:29
bool unset() const
Returns true if this packet payload is unset.
Definition: PacketPayload.cpp:47
PacketHeader m_header
Definition: PacketPayload.h:55
static PacketPayload Merge(const std::shared_ptr< const Packet > &pPacket, const PacketPayload &payload)
Merges a packet (pPacket) and a packet payload into a new packet payload.
Definition: PacketPayload.cpp:59
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
A packet payload that can be written.
Definition: PacketPayload.h:29
Definition: AddressExtractionExtension.cpp:28