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 > &buf)
 Initialize traverser. It will parse and iterate provided buffer. 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 > &  buf)
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.


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