CatapultServer
v0.5.0.1 (Elephant)
|
A packet payload that can be written. More...
Public Member Functions | |
PacketPayload () | |
Creates a default (empty) packet payload. More... | |
PacketPayload (PacketType type) | |
Creates a data-less packet payload with the specified type. More... | |
PacketPayload (const std::shared_ptr< const Packet > &pPacket) | |
Creates a packet payload around a single shared packet (pPacket). More... | |
bool | unset () const |
Returns true if this packet payload is unset. More... | |
const PacketHeader & | header () const |
Packet header. More... | |
const std::vector< RawBuffer > & | buffers () const |
Packet data. More... | |
Static Public Member Functions | |
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. More... | |
Private Attributes | |
PacketHeader | m_header |
std::vector< RawBuffer > | m_buffers |
std::vector< std::shared_ptr< const void > > | m_entities |
Friends | |
class | PacketPayloadBuilder |
A packet payload that can be written.
catapult::ionet::PacketPayload::PacketPayload | ( | ) |
Creates a default (empty) packet payload.
|
explicit |
Creates a data-less packet payload with the specified type.
|
explicit |
Creates a packet payload around a single shared packet (pPacket).
const std::vector< RawBuffer > & catapult::ionet::PacketPayload::buffers | ( | ) | const |
Packet data.
const PacketHeader & catapult::ionet::PacketPayload::header | ( | ) | const |
Packet header.
|
static |
Merges a packet (pPacket) and a packet payload into a new packet payload.
bool catapult::ionet::PacketPayload::unset | ( | ) | const |
Returns true
if this packet payload is unset.
|
friend |
|
private |
|
private |
|
private |