|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <receiver.h>
Public Types | |
| typedef uint64_t | slot_index_t |
| Slot index. | |
| typedef void(* | sess_metrics_func_t) (const pipeline::ReceiverSessionMetrics &sess_metrics, size_t sess_index, void *sess_arg) |
| Callback for getting session metrics. | |
Public Member Functions | |
| Receiver (Context &context, const pipeline::ReceiverConfig &pipeline_config) | |
| Initialize. | |
| ~Receiver () | |
| Deinitialize. | |
| bool | is_valid () |
| Check if successfully constructed. | |
| bool | configure (slot_index_t slot_index, address::Interface iface, const netio::UdpReceiverConfig &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, pipeline::ReceiverSlotMetrics &slot_metrics, sess_metrics_func_t sess_metrics_func, size_t *sess_metrics_size, void *sess_metrics_arg) |
| Get slot 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 33 of file receiver.h.
| typedef void(* roc::node::Receiver::sess_metrics_func_t) (const pipeline::ReceiverSessionMetrics &sess_metrics, size_t sess_index, void *sess_arg) |
Callback for getting session metrics.
Definition at line 60 of file receiver.h.
| typedef uint64_t roc::node::Receiver::slot_index_t |
Slot index.
Definition at line 36 of file receiver.h.
| roc::node::Receiver::Receiver | ( | Context & | context, |
| const pipeline::ReceiverConfig & | 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::UdpReceiverConfig & | config ) |
Set interface config.
| bool roc::node::Receiver::get_metrics | ( | slot_index_t | slot_index, |
| pipeline::ReceiverSlotMetrics & | slot_metrics, | ||
| sess_metrics_func_t | sess_metrics_func, | ||
| size_t * | sess_metrics_size, | ||
| void * | sess_metrics_arg ) |
Get slot metrics.
slot_metrics. Metrics for each session are passed to sess_metrics_func. | 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.