xorp

STCPPacketHeader Class Reference

List of all members.

Public Member Functions

 STCPPacketHeader (uint8_t *data)
void initialize (uint32_t seqno, STCPPacketType type, const XrlError &err, uint32_t xrl_data_bytes)
bool is_valid () const
uint32_t fourcc () const
uint8_t major () const
uint8_t minor () const
STCPPacketType type () const
uint32_t seqno () const
uint32_t error_code () const
uint32_t error_note_bytes () const
uint32_t xrl_data_bytes () const
uint32_t payload_bytes () const
uint32_t frame_bytes () const
bool batch () const
void set_batch (bool batch)

Static Public Member Functions

static size_t header_size ()

Static Public Attributes

static const size_t SIZE = 24

Private Attributes

uint8_t * _data
uint8_t * _fourcc
uint8_t * _major
uint8_t * _minor
uint8_t * _seqno
uint8_t * _flags
uint8_t * _type
uint8_t * _error_code
uint8_t * _error_note_bytes
uint8_t * _xrl_data_bytes

Static Private Attributes

static const size_t _fourcc_sizeof = 4
static const size_t _major_sizeof = 1
static const size_t _minor_sizeof = 1
static const size_t _seqno_sizeof = 4
static const size_t _flags_sizeof = 1
static const size_t _type_sizeof = 1
static const size_t _error_code_sizeof = 4
static const size_t _error_note_bytes_sizeof = 4
static const size_t _xrl_data_bytes_sizeof = 4
static const size_t _fourcc_offset = 0
static const size_t _major_offset = _fourcc_offset + _fourcc_sizeof
static const size_t _minor_offset = _major_offset + _major_sizeof
static const size_t _seqno_offset = _minor_offset + _minor_sizeof
static const size_t _flags_offset = _seqno_offset + _seqno_sizeof
static const size_t _type_offset = _flags_offset + _flags_sizeof
static const size_t _error_code_offset = _type_offset + _type_sizeof
static const size_t _error_note_bytes_offset = _error_code_offset + _error_code_sizeof
static const size_t _xrl_data_bytes_offset = _error_note_bytes_offset + _error_note_bytes_sizeof

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations