CatapultServer  v0.5.0.1 (Elephant)
Packet.h File Reference
Include dependency graph for Packet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  catapult::ionet::Packet
 A packet header with a data payload. More...
 

Namespaces

 catapult
 
 catapult::ionet
 

Functions

template<typename TPacket >
std::shared_ptr< TPacket > catapult::ionet::CreateSharedPacket (uint32_t payloadSize=0)
 Creates a packet of the specified type (TPacket) with the specified payload size. More...
 
template<>
std::shared_ptr< Packet > catapult::ionet::CreateSharedPacket (uint32_t payloadSize)
 
template<typename TPacket >
const TPacket * catapult::ionet::CoercePacket (const Packet *pPacket)
 Coerces pPacket to the desired packet type or nullptr if it is incompatible. More...
 
constexpr bool catapult::ionet::IsPacketValid (const Packet &packet, PacketType type)
 Checks if packet is valid with type. More...