Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::packet::IReader Class Referenceabstract

Packet reader interface. More...

#include <ireader.h>

Inheritance diagram for roc::packet::IReader:

Public Member Functions

virtual ROC_ATTR_NODISCARD status::StatusCode read (PacketPtr &packet)=0
 Read packet. More...
 

Detailed Description

Packet reader interface.

Definition at line 23 of file ireader.h.

Member Function Documentation

◆ read()

virtual ROC_ATTR_NODISCARD status::StatusCode roc::packet::IReader::read ( PacketPtr packet)
pure virtual

Read packet.

Returns
  • If a returned code is not status::StatusOK, a packet is never set;
  • If a packet is set, a returned code is always status::StatusOK.
See also
status::StatusCode.

Implemented in roc::packet::SortedQueue, roc::packet::Queue, roc::packet::DelayedReader, roc::packet::ConcurrentQueue, roc::rtp::Filter, roc::rtp::LinkMeter, roc::rtp::TimestampInjector, and roc::fec::Reader.


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