Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::ctl::BasicControlEndpoint Class Referenceabstract

Base class for control endpoints. More...

#include <basic_control_endpoint.h>

Inheritance diagram for roc::ctl::BasicControlEndpoint:
Collaboration diagram for roc::ctl::BasicControlEndpoint:

Public Member Functions

 BasicControlEndpoint (core::IArena &)
 Initialization. More...
 
virtual bool is_bound () const =0
 Check if endpoint is successfully bound to local URI. More...
 
virtual bool is_connected () const =0
 Check if endpoint is successfully connected to remote URI. More...
 
virtual bool async_bind (const address::EndpointUri &uri, ControlTask &notify_task)=0
 Initiate asynchronous binding to local URI. On completion, resumes notify_task. More...
 
virtual bool async_connect (const address::EndpointUri &uri, ControlTask &notify_task)=0
 Initiate asynchronous connecting to remote URI. Should be called after successfull bind. On completion, resumes notify_task. More...
 
virtual void async_close (ControlTask &notify_task)=0
 Initiate asynchronous closing of endpoint. On completion, resumes notify_task. More...
 
virtual bool attach_sink (const address::EndpointUri &uri, pipeline::SenderLoop &sink)=0
 Add sink pipeline controlled by this endpoint. Should be called after successfull bind. More...
 
virtual bool detach_sink (pipeline::SenderLoop &sink)=0
 Remove sink pipeline. Should be called for earlier attached sink. More...
 
virtual bool attach_source (const address::EndpointUri &uri, pipeline::ReceiverLoop &source)=0
 Add source pipeline controlled by this endpoint. Should be called after successfull bind. More...
 
virtual bool detach_source (pipeline::ReceiverLoop &source)=0
 Remove source pipeline. Should be called for earlier attached source. More...
 
- Public Member Functions inherited from roc::core::RefCounted< BasicControlEndpoint, core::ArenaAllocation >
 RefCounted ()
 Initialize. More...
 
 RefCounted (const core::ArenaAllocation &policy)
 Initialize. More...
 
int getref () const
 Get reference counter. More...
 
void incref () const
 Increment reference counter. More...
 
void decref () const
 Decrement reference counter. More...
 
- Public Member Functions inherited from roc::core::ListNode
ListNodeDatalist_node_data () const
 Get list node data. More...
 

Additional Inherited Members

- Protected Member Functions inherited from roc::core::ArenaAllocation
IArenaarena () const
 Get arena. More...
 
 ArenaAllocation (IArena &arena)
 Initialize. More...
 
template<class T >
void destroy (T &object)
 Destroy object and return memory to arena. More...
 

Detailed Description

Base class for control endpoints.

Definition at line 26 of file basic_control_endpoint.h.

Constructor & Destructor Documentation

◆ BasicControlEndpoint()

roc::ctl::BasicControlEndpoint::BasicControlEndpoint ( core::IArena )

Initialization.

Member Function Documentation

◆ async_bind()

virtual bool roc::ctl::BasicControlEndpoint::async_bind ( const address::EndpointUri uri,
ControlTask notify_task 
)
pure virtual

Initiate asynchronous binding to local URI. On completion, resumes notify_task.

◆ async_close()

virtual void roc::ctl::BasicControlEndpoint::async_close ( ControlTask notify_task)
pure virtual

Initiate asynchronous closing of endpoint. On completion, resumes notify_task.

◆ async_connect()

virtual bool roc::ctl::BasicControlEndpoint::async_connect ( const address::EndpointUri uri,
ControlTask notify_task 
)
pure virtual

Initiate asynchronous connecting to remote URI. Should be called after successfull bind. On completion, resumes notify_task.

◆ attach_sink()

virtual bool roc::ctl::BasicControlEndpoint::attach_sink ( const address::EndpointUri uri,
pipeline::SenderLoop sink 
)
pure virtual

Add sink pipeline controlled by this endpoint. Should be called after successfull bind.

◆ attach_source()

virtual bool roc::ctl::BasicControlEndpoint::attach_source ( const address::EndpointUri uri,
pipeline::ReceiverLoop source 
)
pure virtual

Add source pipeline controlled by this endpoint. Should be called after successfull bind.

◆ detach_sink()

virtual bool roc::ctl::BasicControlEndpoint::detach_sink ( pipeline::SenderLoop sink)
pure virtual

Remove sink pipeline. Should be called for earlier attached sink.

◆ detach_source()

virtual bool roc::ctl::BasicControlEndpoint::detach_source ( pipeline::ReceiverLoop source)
pure virtual

Remove source pipeline. Should be called for earlier attached source.

◆ is_bound()

virtual bool roc::ctl::BasicControlEndpoint::is_bound ( ) const
pure virtual

Check if endpoint is successfully bound to local URI.

◆ is_connected()

virtual bool roc::ctl::BasicControlEndpoint::is_connected ( ) const
pure virtual

Check if endpoint is successfully connected to remote URI.


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