Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::rtp::ExtentionHeader Class Reference

RTP extension header. More...

#include <headers.h>

Public Member Functions

uint16_t type () const
 Get extension type. More...
 
uint32_t data_size () const
 Get extension data size in bytes (without extension header itself). More...
 

Detailed Description

RTP extension header.

Remarks
Extension contains fixed size header of 4 bytes followed by variable length data.
0 1 2 3 4
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| type | length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| extension data |
| .... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Definition at line 235 of file headers.h.

Member Function Documentation

uint32_t roc::rtp::ExtentionHeader::data_size ( ) const
inline

Get extension data size in bytes (without extension header itself).

Definition at line 250 of file headers.h.

uint16_t roc::rtp::ExtentionHeader::type ( ) const
inline

Get extension type.

Definition at line 245 of file headers.h.


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