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

RTCP packet composer. More...

#include <composer.h>

Inheritance diagram for roc::rtcp::Composer:
Collaboration diagram for roc::rtcp::Composer:

Public Member Functions

 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

RTCP packet composer.

Remarks
Unlike other composers, this one expects that the buffer already contains valid RTCP compound packet. The actual composing is done earlier in rtcp::Communicator using rtcp::Builder.

Definition at line 27 of file composer.h.

Constructor & Destructor Documentation

◆ Composer()

roc::rtcp::Composer::Composer ( )

Initialization.

Member Function Documentation

◆ align()

virtual bool roc::rtcp::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.

◆ compose()

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

Compose packet to buffer.

Implements roc::packet::IComposer.

◆ pad()

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

Pad packet.

Implements roc::packet::IComposer.

◆ prepare()

virtual bool roc::rtcp::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: