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

Packet writer interface. More...

#include <iwriter.h>

Inheritance diagram for roc::packet::IWriter:

Public Member Functions

virtual ROC_ATTR_NODISCARD status::StatusCode write (const PacketPtr &)=0
 Write packet. More...
 

Detailed Description

Packet writer interface.

Definition at line 23 of file iwriter.h.

Member Function Documentation

◆ write()

virtual ROC_ATTR_NODISCARD status::StatusCode roc::packet::IWriter::write ( const PacketPtr )
pure virtual

Write packet.

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

Implemented in roc::packet::SortedQueue, roc::packet::Shipper, roc::packet::Router, roc::packet::Queue, roc::packet::Interleaver, roc::packet::ConcurrentQueue, roc::rtp::TimestampExtractor, roc::rtp::LinkMeter, and roc::fec::Writer.


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