Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Packet iterator. More...
#include <traverser.h>
Public Types | |
enum | State { BEGIN , SR , RR , XR , SDES , BYE , END } |
Iterator state. More... | |
Public Member Functions | |
State | next () |
Advance iterator. More... | |
bool | error () const |
Check if there were any parsing errors. More... | |
const header::SenderReportPacket & | get_sr () const |
Get SR packet. More... | |
const header::ReceiverReportPacket & | get_rr () const |
Get RR packet. More... | |
XrTraverser | get_xr () const |
Get traverser for XR packet. More... | |
SdesTraverser | get_sdes () |
Get traverser for SDES packet. More... | |
ByeTraverser | get_bye () |
Get traverser for BYE packet. More... | |
Friends | |
class | Traverser |
Packet iterator.
Definition at line 27 of file traverser.h.
Iterator state.
Enumerator | |
---|---|
BEGIN | Iterator created. |
SR | SR packet. |
RR | RR packet. |
XR | XR packet. |
SDES | SDES packet. |
BYE | BYE packet. |
END | Parsed whole compound packet. |
Definition at line 30 of file traverser.h.
bool roc::rtcp::Traverser::Iterator::error | ( | ) | const |
Check if there were any parsing errors.
ByeTraverser roc::rtcp::Traverser::Iterator::get_bye | ( | ) |
Get traverser for BYE packet.
const header::ReceiverReportPacket& roc::rtcp::Traverser::Iterator::get_rr | ( | ) | const |
Get RR packet.
SdesTraverser roc::rtcp::Traverser::Iterator::get_sdes | ( | ) |
Get traverser for SDES packet.
const header::SenderReportPacket& roc::rtcp::Traverser::Iterator::get_sr | ( | ) | const |
Get SR packet.
XrTraverser roc::rtcp::Traverser::Iterator::get_xr | ( | ) | const |
Get traverser for XR packet.
State roc::rtcp::Traverser::Iterator::next | ( | ) |
Advance iterator.