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

RTP validator. More...

#include <validator.h>

Inheritance diagram for roc::rtp::Validator:
Collaboration diagram for roc::rtp::Validator:

Public Member Functions

 Validator (packet::IReader &reader, const ValidatorConfig &config, size_t sample_rate)
 Initialize. More...
virtual packet::PacketPtr read ()
 Read next packet. More...

Detailed Description

RTP validator.

Definition at line 37 of file validator.h.

Constructor & Destructor Documentation

roc::rtp::Validator::Validator ( packet::IReader reader,
const ValidatorConfig config,
size_t  sample_rate 



  • reader is input packet reader
  • config defines validator parameters
  • sample_rate defines session sample rate

Member Function Documentation

virtual packet::PacketPtr roc::rtp::Validator::read ( )

Read next packet.

Reads packet from the underlying reader and validates it. If the packet is valid, return it. Otherwise, returns NULL.

Implements roc::packet::IReader.

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