Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::node::Receiver Class Reference

Receiver node. More...

#include <receiver.h>

Inheritance diagram for roc::node::Receiver:
Collaboration diagram for roc::node::Receiver:

Public Types

typedef uint64_t slot_index_t
 Slot index. More...
 
typedef void(* slot_metrics_func_t) (const pipeline::ReceiverSlotMetrics &slot_metrics, void *slot_arg)
 Callback for slot metrics. More...
 
typedef void(* party_metrics_func_t) (const pipeline::ReceiverParticipantMetrics &party_metrics, size_t party_index, void *party_arg)
 Callback for participant metrics. More...
 

Public Member Functions

 Receiver (Context &context, const pipeline::ReceiverSourceConfig &pipeline_config)
 Initialize. More...
 
 ~Receiver ()
 Deinitialize. More...
 
bool is_valid ()
 Check if successfully constructed. More...
 
ROC_ATTR_NODISCARD bool configure (slot_index_t slot_index, address::Interface iface, const netio::UdpConfig &config)
 Set interface config. More...
 
ROC_ATTR_NODISCARD bool bind (slot_index_t slot_index, address::Interface iface, address::EndpointUri &uri)
 Bind to local endpoint. More...
 
ROC_ATTR_NODISCARD bool unlink (slot_index_t slot_index)
 Remove slot. More...
 
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. More...
 
bool has_broken ()
 Check if there are broken slots. More...
 
sndio::ISourcesource ()
 Get receiver source. More...
 
- Public Member Functions inherited from roc::node::Node
 Node (Context &context)
 Initialize. More...
 
virtual ~Node ()
 Deinitialize. More...
 
Contextcontext ()
 All nodes hold reference to context. More...
 

Detailed Description

Receiver node.

Definition at line 34 of file receiver.h.

Member Typedef Documentation

◆ party_metrics_func_t

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.

◆ slot_index_t

Slot index.

Definition at line 37 of file receiver.h.

◆ slot_metrics_func_t

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.

Constructor & Destructor Documentation

◆ Receiver()

roc::node::Receiver::Receiver ( Context context,
const pipeline::ReceiverSourceConfig pipeline_config 
)

Initialize.

◆ ~Receiver()

roc::node::Receiver::~Receiver ( )

Deinitialize.

Member Function Documentation

◆ bind()

ROC_ATTR_NODISCARD bool roc::node::Receiver::bind ( slot_index_t  slot_index,
address::Interface  iface,
address::EndpointUri uri 
)

Bind to local endpoint.

◆ configure()

ROC_ATTR_NODISCARD bool roc::node::Receiver::configure ( slot_index_t  slot_index,
address::Interface  iface,
const netio::UdpConfig config 
)

Set interface config.

◆ get_metrics()

ROC_ATTR_NODISCARD 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.

◆ has_broken()

bool roc::node::Receiver::has_broken ( )

Check if there are broken slots.

◆ is_valid()

bool roc::node::Receiver::is_valid ( )

Check if successfully constructed.

◆ source()

sndio::ISource& roc::node::Receiver::source ( )

Get receiver source.

◆ unlink()

ROC_ATTR_NODISCARD bool roc::node::Receiver::unlink ( slot_index_t  slot_index)

Remove slot.


The documentation for this class was generated from the following file: