|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <sender.h>
Public Types | |
| typedef uint64_t | slot_index_t |
| Slot index. | |
| typedef void(* | slot_metrics_func_t) (const pipeline::SenderSlotMetrics &slot_metrics, void *slot_arg) |
| Callback for slot metrics. | |
| typedef void(* | party_metrics_func_t) (const pipeline::SenderParticipantMetrics &party_metrics, size_t party_index, void *party_arg) |
| Callback for participant metrics. | |
Public Member Functions | |
| Sender (Context &context, const pipeline::SenderSinkConfig &pipeline_config) | |
| Initialize. | |
| ~Sender () | |
| Deinitialize. | |
| bool | is_valid () const |
| Check if successfully constructed. | |
| ROC_ATTR_NODISCARD bool | configure (slot_index_t slot_index, address::Interface iface, const netio::UdpConfig &config) |
| Set interface config. | |
| ROC_ATTR_NODISCARD bool | connect (slot_index_t slot_index, address::Interface iface, const address::EndpointUri &uri) |
| Connect to remote endpoint. | |
| ROC_ATTR_NODISCARD bool | unlink (slot_index_t slot_index) |
| Remove slot. | |
| ROC_ATTR_NODISCARD bool | get_metrics (slot_index_t slot_index, slot_metrics_func_t slot_metrics_func, void *slot_metrics_arg, party_metrics_func_t party_metrics_func, size_t *party_metrics_size, void *party_metrics_arg) |
| Get metrics. | |
| bool | has_incomplete () |
| Check if there are incomplete or broken slots. | |
| bool | has_broken () |
| Check if there are broken slots. | |
| sndio::ISink & | sink () |
| Get sender sink. | |
| Public Member Functions inherited from roc::node::Node | |
| Node (Context &context) | |
| Initialize. | |
| virtual | ~Node () |
| Deinitialize. | |
| Context & | context () |
| All nodes hold reference to context. | |
| typedef void(* roc::node::Sender::party_metrics_func_t) (const pipeline::SenderParticipantMetrics &party_metrics, size_t party_index, void *party_arg) |
| typedef uint64_t roc::node::Sender::slot_index_t |
| typedef void(* roc::node::Sender::slot_metrics_func_t) (const pipeline::SenderSlotMetrics &slot_metrics, void *slot_arg) |
| roc::node::Sender::Sender | ( | Context & | context, |
| const pipeline::SenderSinkConfig & | pipeline_config ) |
Initialize.
| roc::node::Sender::~Sender | ( | ) |
Deinitialize.
| ROC_ATTR_NODISCARD bool roc::node::Sender::configure | ( | slot_index_t | slot_index, |
| address::Interface | iface, | ||
| const netio::UdpConfig & | config ) |
Set interface config.
| ROC_ATTR_NODISCARD bool roc::node::Sender::connect | ( | slot_index_t | slot_index, |
| address::Interface | iface, | ||
| const address::EndpointUri & | uri ) |
Connect to remote endpoint.
| ROC_ATTR_NODISCARD bool roc::node::Sender::get_metrics | ( | slot_index_t | slot_index, |
| slot_metrics_func_t | slot_metrics_func, | ||
| void * | slot_metrics_arg, | ||
| party_metrics_func_t | party_metrics_func, | ||
| size_t * | party_metrics_size, | ||
| void * | party_metrics_arg ) |
Get metrics.
| bool roc::node::Sender::has_broken | ( | ) |
Check if there are broken slots.
| bool roc::node::Sender::has_incomplete | ( | ) |
Check if there are incomplete or broken slots.
| bool roc::node::Sender::is_valid | ( | ) | const |
Check if successfully constructed.
| sndio::ISink & roc::node::Sender::sink | ( | ) |
Get sender sink.
| ROC_ATTR_NODISCARD bool roc::node::Sender::unlink | ( | slot_index_t | slot_index | ) |
Remove slot.