Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Sender endpoint sub-pipeline. More...
#include <sender_endpoint.h>
Public Member Functions | |
SenderEndpoint (address::Protocol proto, StateTracker &state_tracker, SenderSession &sender_session, const address::SocketAddr &outbound_address, packet::IWriter &outbound_writer, core::IArena &arena) | |
Initialize. More... | |
bool | is_valid () const |
Check if pipeline was succefully constructed. More... | |
address::Protocol | proto () const |
Get protocol. More... | |
const address::SocketAddr & | outbound_address () const |
Get destination address for outbound packets. More... | |
packet::IComposer & | outbound_composer () |
Get composer for outbound packets. More... | |
packet::IWriter & | outbound_writer () |
Get writer for outbound packets. This way packets generated by sender reach network. More... | |
packet::IWriter * | inbound_writer () |
Get writer for inbound packets. This way feedback packets from receiver reach sender pipeline. More... | |
ROC_ATTR_NODISCARD status::StatusCode | pull_packets (core::nanoseconds_t current_time) |
Pull packets written to inbound writer into pipeline. More... | |
Sender endpoint sub-pipeline.
Contains:
Definition at line 40 of file sender_endpoint.h.
roc::pipeline::SenderEndpoint::SenderEndpoint | ( | address::Protocol | proto, |
StateTracker & | state_tracker, | ||
SenderSession & | sender_session, | ||
const address::SocketAddr & | outbound_address, | ||
packet::IWriter & | outbound_writer, | ||
core::IArena & | arena | ||
) |
Initialize.
outbound_address
specifies destination address that is assigned to the outgoing packets in the end of endpoint pipelineoutbound_writer
specifies destination writer to which packets are sent in the end of endpoint pipeline packet::IWriter* roc::pipeline::SenderEndpoint::inbound_writer | ( | ) |
Get writer for inbound packets. This way feedback packets from receiver reach sender pipeline.
bool roc::pipeline::SenderEndpoint::is_valid | ( | ) | const |
Check if pipeline was succefully constructed.
const address::SocketAddr& roc::pipeline::SenderEndpoint::outbound_address | ( | ) | const |
Get destination address for outbound packets.
packet::IComposer& roc::pipeline::SenderEndpoint::outbound_composer | ( | ) |
Get composer for outbound packets.
packet::IWriter& roc::pipeline::SenderEndpoint::outbound_writer | ( | ) |
Get writer for outbound packets. This way packets generated by sender reach network.
address::Protocol roc::pipeline::SenderEndpoint::proto | ( | ) | const |
Get protocol.
ROC_ATTR_NODISCARD status::StatusCode roc::pipeline::SenderEndpoint::pull_packets | ( | core::nanoseconds_t | current_time | ) |
Pull packets written to inbound writer into pipeline.