Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
RTP header. More...
#include <headers.h>
Public Member Functions | |
uint32_t | header_size () const |
Get header size in bytes. More... | |
void | clear () |
Clear header. More... | |
uint8_t | version () const |
Get version. More... | |
void | set_version (Version v) |
Set version. More... | |
bool | has_padding () const |
Get padding flag. More... | |
void | set_padding (bool v) |
Set padding flag. More... | |
bool | has_extension () const |
Get extension flag. More... | |
uint8_t | payload_type () const |
Get payload type. More... | |
void | set_payload_type (uint8_t pt) |
Set payload type. More... | |
bool | marker () const |
Get marker bit. More... | |
void | set_marker (bool m) |
Set marker bit. More... | |
packet::seqnum_t | seqnum () const |
Get sequence number. More... | |
void | set_seqnum (packet::seqnum_t sn) |
Set sequence number. More... | |
packet::stream_timestamp_t | timestamp () const |
Get timestamp. More... | |
void | set_timestamp (packet::stream_timestamp_t ts) |
Set timestamp. More... | |
packet::stream_source_t | ssrc () const |
Get SSRC. More... | |
void | set_ssrc (packet::stream_source_t s) |
Set SSRC. More... | |
uint8_t | num_csrc () const |
Get CSRC count. More... | |
packet::stream_source_t | csrc (size_t index) const |
Get CSRC with given index. More... | |
RTP header.
Contains fixed size part of 12 bytes and variable size CSRC array.
RFC 3550 5.1: "RTP Fixed Header Fields"
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |