Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::pipeline::ReceiverLoop::Tasks::CreateEndpoint Class Reference

Create endpoint on given interface of the slot. More...

#include <receiver_loop.h>

Inheritance diagram for roc::pipeline::ReceiverLoop::Tasks::CreateEndpoint:
roc::pipeline::ReceiverLoop::Task roc::pipeline::PipelineTask roc::core::MpscQueueNode roc::core::NonCopyable< MpscQueueNode >

Public Member Functions

 CreateEndpoint (SlotHandle slot, address::Interface iface, address::Protocol proto)
 Set task parameters.
 
packet::IWriterget_writer () const
 Get packet writer for the endpoint.
 
- Public Member Functions inherited from roc::pipeline::PipelineTask
bool success () const
 Check that the task finished and succeeded.
 
- Public Member Functions inherited from roc::core::MpscQueueNode
MpscQueueDatampsc_queue_data () const
 Get list node data.
 

Additional Inherited Members

- Protected Attributes inherited from roc::pipeline::ReceiverLoop::Task
bool(ReceiverLoop::* func_ )(Task &)
 Task implementation method.
 
ReceiverSlotslot_
 Slot.
 
address::Interface iface_
 Interface.
 
address::Protocol proto_
 Protocol.
 
packet::IWriterwriter_
 Packet writer.
 

Detailed Description

Create endpoint on given interface of the slot.

Definition at line 80 of file receiver_loop.h.

Constructor & Destructor Documentation

◆ CreateEndpoint()

roc::pipeline::ReceiverLoop::Tasks::CreateEndpoint::CreateEndpoint ( SlotHandle  slot,
address::Interface  iface,
address::Protocol  proto 
)

Set task parameters.

Remarks
Each slot can have one source and zero or one repair endpoint. The protocols of endpoints in one slot should be compatible.

Member Function Documentation

◆ get_writer()

packet::IWriter * roc::pipeline::ReceiverLoop::Tasks::CreateEndpoint::get_writer ( ) const

Get packet writer for the endpoint.

Remarks
The returned writer may be used from any thread.

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