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

RTP packet composer. More...

#include <composer.h>

Inheritance diagram for roc::rtp::Composer:
Collaboration diagram for roc::rtp::Composer:

Public Member Functions

 Composer (packet::IComposer *inner_composer)
 Initialization. More...
 
virtual bool align (core::Slice< uint8_t > &buffer, size_t header_size, size_t payload_alignment)
 Adjust buffer to align payload. More...
 
virtual bool prepare (packet::Packet &packet, core::Slice< uint8_t > &buffer, size_t payload_size)
 Prepare buffer for composing a packet. More...
 
virtual bool pad (packet::Packet &packet, size_t padding_size)
 Pad packet. More...
 
virtual bool compose (packet::Packet &packet)
 Compose packet to buffer. More...
 

Detailed Description

RTP packet composer.

Definition at line 22 of file composer.h.

Constructor & Destructor Documentation

roc::rtp::Composer::Composer ( packet::IComposer inner_composer)

Initialization.

Remarks
If inner_composer is not NULL, it is used to compose the packet payload.

Member Function Documentation

virtual bool roc::rtp::Composer::align ( core::Slice< uint8_t > &  buffer,
size_t  header_size,
size_t  payload_alignment 
)
virtual

Adjust buffer to align payload.

Implements roc::packet::IComposer.

virtual bool roc::rtp::Composer::compose ( packet::Packet packet)
virtual

Compose packet to buffer.

Implements roc::packet::IComposer.

virtual bool roc::rtp::Composer::pad ( packet::Packet packet,
size_t  padding_size 
)
virtual

Pad packet.

Implements roc::packet::IComposer.

virtual bool roc::rtp::Composer::prepare ( packet::Packet packet,
core::Slice< uint8_t > &  buffer,
size_t  payload_size 
)
virtual

Prepare buffer for composing a packet.

Implements roc::packet::IComposer.


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