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

Sender node. More...

#include <sender.h>

Inheritance diagram for roc::node::Sender:
Collaboration diagram for roc::node::Sender:

Public Types

typedef uint64_t slot_index_t
 Slot index. More...
 

Public Member Functions

 Sender (Context &context, const pipeline::SenderConfig &pipeline_config)
 Initialize. More...
 
 ~Sender ()
 Deinitialize. More...
 
bool is_valid () const
 Check if successfully constructed. More...
 
bool configure (slot_index_t slot_index, address::Interface iface, const netio::UdpSenderConfig &config)
 Set interface config. More...
 
bool connect (slot_index_t slot_index, address::Interface iface, const address::EndpointUri &uri)
 Connect to remote endpoint. More...
 
bool unlink (slot_index_t slot_index)
 Remove slot. More...
 
bool get_metrics (slot_index_t slot_index, pipeline::SenderSlotMetrics &slot_metrics, pipeline::SenderSessionMetrics &sess_metrics)
 Get slot metrics. More...
 
bool has_incomplete ()
 Check if there are incomplete or broken slots. More...
 
bool has_broken ()
 Check if there are broken slots. More...
 
sndio::ISinksink ()
 Get sender sink. 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

Sender node.

Definition at line 35 of file sender.h.

Member Typedef Documentation

◆ slot_index_t

Slot index.

Definition at line 38 of file sender.h.

Constructor & Destructor Documentation

◆ Sender()

roc::node::Sender::Sender ( Context context,
const pipeline::SenderConfig pipeline_config 
)

Initialize.

◆ ~Sender()

roc::node::Sender::~Sender ( )

Deinitialize.

Member Function Documentation

◆ configure()

bool roc::node::Sender::configure ( slot_index_t  slot_index,
address::Interface  iface,
const netio::UdpSenderConfig config 
)

Set interface config.

◆ connect()

bool roc::node::Sender::connect ( slot_index_t  slot_index,
address::Interface  iface,
const address::EndpointUri uri 
)

Connect to remote endpoint.

◆ get_metrics()

bool roc::node::Sender::get_metrics ( slot_index_t  slot_index,
pipeline::SenderSlotMetrics slot_metrics,
pipeline::SenderSessionMetrics sess_metrics 
)

Get slot metrics.

Remarks
Metrics are written into provided arguments.

◆ has_broken()

bool roc::node::Sender::has_broken ( )

Check if there are broken slots.

◆ has_incomplete()

bool roc::node::Sender::has_incomplete ( )

Check if there are incomplete or broken slots.

◆ is_valid()

bool roc::node::Sender::is_valid ( ) const

Check if successfully constructed.

◆ sink()

sndio::ISink& roc::node::Sender::sink ( )

Get sender sink.

◆ unlink()

bool roc::node::Sender::unlink ( slot_index_t  slot_index)

Remove slot.


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