12 #ifndef ROC_RTCP_BYE_TRAVERSER_H_
13 #define ROC_RTCP_BYE_TRAVERSER_H_
71 char parsed_reason_[header::MaxTextLen + 1];
packet::stream_source_t get_ssrc() const
Get SSRC element.
const char * get_reason() const
Get REASON element. Zero-terminated UTF-8 string. Pointer is valid only until next() call.
@ END
Parsed whole packet.
bool error() const
Check if there were any parsing errors.
State next()
Advance iterator.
Iterator iter() const
Construct iterator.
size_t ssrc_count() const
Get number of SSRC elements in packet.
ByeTraverser(const core::Slice< uint8_t > &buf)
Initialize traverser. It will parse and iterate provided buffer.
bool parse()
Parse packet from buffer.
uint32_t stream_source_t
Packet stream identifier.
Commonly used types and functions.
Various units used in packets.