![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Sender endpoint sub-pipeline. More...
#include <roc_pipeline/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. | |
| bool | is_valid () const |
| Check if pipeline was succefully constructed. | |
| address::Protocol | proto () const |
| Get protocol. | |
| const address::SocketAddr & | outbound_address () const |
| Get destination address for outbound packets. | |
| packet::IComposer & | outbound_composer () |
| Get composer for outbound packets. | |
| packet::IWriter & | outbound_writer () |
| Get writer for outbound packets. This way packets generated by sender reach network. | |
| packet::IWriter * | inbound_writer () |
| Get writer for inbound packets. This way feedback packets from receiver reach sender pipeline. | |
| status::StatusCode | pull_packets (core::nanoseconds_t current_time) |
| Pull packets written to inbound writer into pipeline. | |
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.
| status::StatusCode roc::pipeline::SenderEndpoint::pull_packets | ( | core::nanoseconds_t | current_time | ) |
Pull packets written to inbound writer into pipeline.