![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
RTP header. More...
#include <roc_rtp/headers.h>
Public Member Functions | |
| uint32_t | header_size () const |
| Get header size in bytes. | |
| void | clear () |
| Clear header. | |
| uint8_t | version () const |
| Get version. | |
| void | set_version (Version v) |
| Set version. | |
| bool | has_padding () const |
| Get padding flag. | |
| void | set_padding (bool v) |
| Set padding flag. | |
| bool | has_extension () const |
| Get extension flag. | |
| uint8_t | payload_type () const |
| Get payload type. | |
| void | set_payload_type (uint8_t pt) |
| Set payload type. | |
| bool | marker () const |
| Get marker bit. | |
| void | set_marker (bool m) |
| Set marker bit. | |
| packet::seqnum_t | seqnum () const |
| Get sequence number. | |
| void | set_seqnum (packet::seqnum_t sn) |
| Set sequence number. | |
| packet::stream_timestamp_t | timestamp () const |
| Get timestamp. | |
| void | set_timestamp (packet::stream_timestamp_t ts) |
| Set timestamp. | |
| packet::stream_source_t | ssrc () const |
| Get SSRC. | |
| void | set_ssrc (packet::stream_source_t s) |
| Set SSRC. | |
| uint8_t | num_csrc () const |
| Get CSRC count. | |
| packet::stream_source_t | csrc (size_t index) const |
| Get CSRC with given index. | |
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 |