![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Prepare a packet for being sent. More...
#include <roc_packet/shipper.h>

Public Member Functions | |
| Shipper (IComposer &composer, IWriter &outbound_writer, const address::SocketAddr *outbound_address) | |
| Initialize. | |
| const address::SocketAddr & | outbound_address () const |
| Get destination address for outbound packets. | |
| virtual status::StatusCode | write (const PacketPtr &packet) |
| Write outgoing packet. | |
| 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.