Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Prepare a packet for being sent. More...
#include <shipper.h>
Public Member Functions | |
Shipper (IComposer &composer, IWriter &outbound_writer, const address::SocketAddr *outbound_address) | |
Initialize. More... | |
const address::SocketAddr & | outbound_address () const |
Get destination address for outbound packets. More... | |
virtual ROC_ATTR_NODISCARD status::StatusCode | write (const PacketPtr &packet) |
Write outgoing packet. More... | |
roc::packet::Shipper::Shipper | ( | IComposer & | composer, |
IWriter & | outbound_writer, | ||
const address::SocketAddr * | outbound_address | ||
) |
Initialize.
composer
- used to complete composing packetsoutbound_writer
- destination writeroutbound_address
- destination address is assigned to packets, may be null const address::SocketAddr& roc::packet::Shipper::outbound_address | ( | ) | const |
Get destination address for outbound packets.
|
virtual |
Write outgoing packet.
Implements roc::packet::IWriter.