Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::rtcp::Traverser Class Reference

RTCP compound packet traverser. More...

#include <traverser.h>

Classes

class  Iterator
 Packet iterator. More...
 

Public Member Functions

 Traverser (const core::Slice< uint8_t > &data)
 Initialize traverser. It will parse and iterate provided buffer. More...
 
bool validate () const
 Validate packet for strict correctness according to the RFC. More...
 
bool parse ()
 Parse packet from buffer. More...
 
Iterator iter () const
 Construct iterator. More...
 

Detailed Description

RTCP compound packet traverser.

Definition at line 24 of file traverser.h.

Constructor & Destructor Documentation

◆ Traverser()

roc::rtcp::Traverser::Traverser ( const core::Slice< uint8_t > &  data)
explicit

Initialize traverser. It will parse and iterate provided buffer.

Member Function Documentation

◆ iter()

Iterator roc::rtcp::Traverser::iter ( ) const

Construct iterator.

Precondition
Can be used if parse() returned true.

◆ parse()

bool roc::rtcp::Traverser::parse ( )

Parse packet from buffer.

◆ validate()

bool roc::rtcp::Traverser::validate ( ) const

Validate packet for strict correctness according to the RFC.


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