Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::packet::Shipper Class Reference

Prepare a packet for being sent. More...

#include <shipper.h>

Inheritance diagram for roc::packet::Shipper:
roc::packet::IWriter roc::core::NonCopyable< T >

Public Member Functions

 Shipper (const address::SocketAddr &dest_address, IComposer &composer, IWriter &writer)
 Initialize.
 
virtual ROC_ATTR_NODISCARD status::StatusCode write (const packet::PacketPtr &packet)
 Write outgoing packet.
 

Detailed Description

Prepare a packet for being sent.

Definition at line 24 of file shipper.h.

Constructor & Destructor Documentation

◆ Shipper()

roc::packet::Shipper::Shipper ( const address::SocketAddr & dest_address,
IComposer & composer,
IWriter & writer )

Initialize.

  • dest_address - destination address that is assigned to the outgoing packets.
  • composer to compose a packet if necessary.
  • writer to write outgoing packet.

Member Function Documentation

◆ write()

virtual ROC_ATTR_NODISCARD status::StatusCode roc::packet::Shipper::write ( const packet::PacketPtr & packet)
virtual

Write outgoing packet.

Implements roc::packet::IWriter.


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