![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <roc_node/receiver.h>

Public Types | |
| typedef uint64_t | slot_index_t |
| Slot index. | |
| typedef void(* | slot_metrics_func_t) (const pipeline::ReceiverSlotMetrics &slot_metrics, void *slot_arg) |
| Callback for slot metrics. | |
| typedef void(* | party_metrics_func_t) (const pipeline::ReceiverParticipantMetrics &party_metrics, size_t party_index, void *party_arg) |
| Callback for participant metrics. | |
Public Member Functions | |
| Receiver (Context &context, const pipeline::ReceiverSourceConfig &pipeline_config) | |
| Initialize. | |
| ~Receiver () | |
| Deinitialize. | |
| bool | is_valid () |
| Check if successfully constructed. | |
| bool | configure (slot_index_t slot_index, address::Interface iface, const netio::UdpConfig &config) |
| Set interface config. | |
| bool | bind (slot_index_t slot_index, address::Interface iface, address::EndpointUri &uri) |
| Bind to local endpoint. | |
| bool | unlink (slot_index_t slot_index) |
| Remove slot. | |
| 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_broken () |
| Check if there are broken slots. | |
| sndio::ISource & | source () |
| Get receiver source. | |
Public Member Functions inherited from roc::node::Node | |
| Node (Context &context) | |
| Initialize. | |
| virtual | ~Node () |
| Deinitialize. | |
| Context & | context () |
| All nodes hold reference to context. | |
Receiver node.
Definition at line 34 of file receiver.h.
| typedef void(* roc::node::Receiver::party_metrics_func_t) (const pipeline::ReceiverParticipantMetrics &party_metrics, size_t party_index, void *party_arg) |
Callback for participant metrics.
Definition at line 65 of file receiver.h.
| typedef uint64_t roc::node::Receiver::slot_index_t |
Slot index.
Definition at line 37 of file receiver.h.
| typedef void(* roc::node::Receiver::slot_metrics_func_t) (const pipeline::ReceiverSlotMetrics &slot_metrics, void *slot_arg) |
Callback for slot metrics.
Definition at line 61 of file receiver.h.
| roc::node::Receiver::Receiver | ( | Context & | context, |
| const pipeline::ReceiverSourceConfig & | pipeline_config | ||
| ) |
Initialize.
| roc::node::Receiver::~Receiver | ( | ) |
Deinitialize.
| bool roc::node::Receiver::bind | ( | slot_index_t | slot_index, |
| address::Interface | iface, | ||
| address::EndpointUri & | uri | ||
| ) |
Bind to local endpoint.
| bool roc::node::Receiver::configure | ( | slot_index_t | slot_index, |
| address::Interface | iface, | ||
| const netio::UdpConfig & | config | ||
| ) |
Set interface config.
| bool roc::node::Receiver::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::Receiver::has_broken | ( | ) |
Check if there are broken slots.
| bool roc::node::Receiver::is_valid | ( | ) |
Check if successfully constructed.
| sndio::ISource & roc::node::Receiver::source | ( | ) |
Get receiver source.
| bool roc::node::Receiver::unlink | ( | slot_index_t | slot_index | ) |
Remove slot.