senf::emu::TunnelCtrlPacketParser Struct Reference

#include <senf/Ext/NetEmu/P2PTunnel/TunnelCtrlPacket.hh>

Inheritance diagram for senf::emu::TunnelCtrlPacketParser:

Public Types

enum  CmdCode {
  SetupRequest =1, SetupAck, SetupReject, TerminateRequest,
  TerminateAck, EchoRequest, EchoReply
}
 
typedef UInt8Parser code_t
 
- Public Types inherited from senf::PacketParserBase
typedef detail::packet::iterator data_iterator
 
typedef detail::packet::size_type size_type
 
typedef detail::packet::difference_type difference_type
 
typedef detail::packet::byte byte
 
typedef PacketDatastate_type
 
typedef PacketParserBase parser_base_type
 

Public Member Functions

UInt8Parser code () const
 
senf::Parse_Variant_Direct< code_t,?,(ids(na, na, na, key(0, VoidPacketParser)))(ids(capacity, has_capacity, add_capacity, key(SetupRequest, TunnelCapacityPacketParser))) >::parser code__ () const
 
- Public Member Functions inherited from senf::PacketParserBase
data_iterator i () const
 
data_iterator i (size_type offset) const
 
state_type state () const
 
PacketDatadata () const
 
void init () const
 

Additional Inherited Members

- Protected Member Functions inherited from senf::PacketParserBase
ParserProtector protect () const
 
 PacketParserBase (data_iterator i, state_type s)
 
 PacketParserBase (data_iterator i, state_type s, size_type size)
 
bool check (size_type size) const
 
void validate (size_type size) const
 
Parser parse (data_iterator i) const
 
Parser parse (Arg const &arg, data_iterator i) const
 
Parser parse (size_type n) const
 
Parser parse (Arg const &arg, size_type n) const
 
void defaultInit () const
 
Packet packet () const
 
void resize (size_type oldSize, size_type newSize)
 

Detailed Description

Definition at line 36 of file TunnelCtrlPacket.hh.

Member Typedef Documentation

◆ code_t

Member Enumeration Documentation

◆ CmdCode

Enumerator
SetupRequest 
SetupAck 
SetupReject 
TerminateRequest 
TerminateAck 
EchoRequest 
EchoReply 

Definition at line 38 of file TunnelCtrlPacket.hh.

Member Function Documentation

◆ code()

UInt8Parser senf::emu::TunnelCtrlPacketParser::code ( ) const

◆ code__()

senf::Parse_Variant_Direct< code_t,?, ( ids( na, na, na, key(0, VoidPacketParser )) ) ( ids( capacity, has_capacity, add_capacity, key(SetupRequest, TunnelCapacityPacketParser)) ) >::parser senf::emu::TunnelCtrlPacketParser::code__ ( ) const

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