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

RTP packet parser. More...

#include <parser.h>

Inheritance diagram for roc::rtp::Parser:
Collaboration diagram for roc::rtp::Parser:

Public Member Functions

 Parser (const FormatMap &format_map, packet::IParser *inner_parser)
 Initialization. More...
 
virtual bool parse (packet::Packet &packet, const core::Slice< uint8_t > &buffer)
 Parse packet from buffer. More...
 

Detailed Description

RTP packet parser.

Definition at line 23 of file parser.h.

Constructor & Destructor Documentation

roc::rtp::Parser::Parser ( const FormatMap format_map,
packet::IParser inner_parser 
)

Initialization.

Parameters

  • format_map is used to get packet parameters by its payload type
  • if inner_parser is not NULL, it is used to parse the packet payload

Member Function Documentation

virtual bool roc::rtp::Parser::parse ( packet::Packet packet,
const core::Slice< uint8_t > &  buffer 
)
virtual

Parse packet from buffer.

Implements roc::packet::IParser.


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