Generic payload-only packet. More...

#include <senf/Packets/DataPacket.hh>

Inheritance diagram for senf::DataPacketType:

Public Types

typedef ConcretePacket< DataPacketTypepacket
 
- Public Types inherited from senf::PacketTypeBase
typedef Packet packet
 
typedef senf::detail::packet::iterator iterator
 
typedef senf::detail::packet::const_iterator const_iterator
 
typedef senf::detail::packet::size_type size_type
 
typedef senf::detail::packet::difference_type difference_type
 
typedef senf::detail::packet::byte byte
 
typedef PacketInterpreterBase::range range
 
typedef PacketInterpreterBase::optional_range optional_range
 
typedef PacketInterpreterBase::factory_t factory_t
 
typedef VoidPacketParser parser
 Parser to parser packet fields. More...
 

Static Public Member Functions

static void dump (packet p, std::ostream &os)
 
- Static Public Member Functions inherited from senf::PacketTypeBase
static optional_range no_range ()
 
static factory_t no_factory ()
 
template<class PacketType >
static factory_t factory ()
 
static size_type initSize ()
 Get size of new (empty) packet. More...
 
static size_type initHeadSize ()
 Get size of new (empty) packet header. More...
 
static void init (packet p)
 Initialize new packet. More...
 
static optional_range nextPacketRange (packet p)
 Get next packet placement. More...
 
static factory_t nextPacketType (packet p)
 Get type of next packet. More...
 
static void finalize (packet p)
 Finalize packet. More...
 
static void dump (packet p, std::ostream &os)
 Dump packet data in readable form. More...
 

Detailed Description

Generic payload-only packet.

Packet type (typedef):
DataPacket

DataPacket is a simple generic packet with just a payload of uninterpreted data. This is the packet used whenever no more specific packet type can be found for a sub-packet (e.g. as the payload data of a UDP packet)

Definition at line 40 of file DataPacket.hh.

Member Typedef Documentation

◆ packet

Member Function Documentation

◆ dump()

void senf::DataPacketType::dump ( packet  p,
std::ostream &  os 
)
static

Definition at line 26 of file DataPacket.cc.


The documentation for this struct was generated from the following files: