Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Base class for control endpoints. More...
#include <basic_control_endpoint.h>
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 ¬ify_task)=0 |
Initiate asynchronous binding to local URI. On completion, resumes notify_task . More... | |
virtual bool | async_connect (const address::EndpointUri &uri, ControlTask ¬ify_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 ¬ify_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< Tag > | |
ListData * | list_data () const |
Get pointer to internal data. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from roc::core::ListNode< Tag > | |
static ListNode * | list_node (ListData *data) |
Get pointer to parent node from pointer to internal data. More... | |
Protected Member Functions inherited from roc::core::ArenaAllocation | |
IArena & | arena () const |
Get arena. More... | |
ArenaAllocation (IArena &arena) | |
Initialize. More... | |
template<class T > | |
void | destroy (T &object) |
Destroy object and return memory to arena. More... | |
Base class for control endpoints.
Definition at line 26 of file basic_control_endpoint.h.
roc::ctl::BasicControlEndpoint::BasicControlEndpoint | ( | core::IArena & | ) |
Initialization.
|
pure virtual |
Initiate asynchronous binding to local URI. On completion, resumes notify_task
.
|
pure virtual |
Initiate asynchronous closing of endpoint. On completion, resumes notify_task
.
|
pure virtual |
Initiate asynchronous connecting to remote URI. Should be called after successfull bind. On completion, resumes notify_task
.
|
pure virtual |
Add sink pipeline controlled by this endpoint. Should be called after successfull bind.
|
pure virtual |
Add source pipeline controlled by this endpoint. Should be called after successfull bind.
|
pure virtual |
Remove sink pipeline. Should be called for earlier attached sink.
|
pure virtual |
Remove source pipeline. Should be called for earlier attached source.
|
pure virtual |
Check if endpoint is successfully bound to local URI.
|
pure virtual |
Check if endpoint is successfully connected to remote URI.