|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Peer context. More...
#include <context.h>
Public Member Functions | |
| Context (const ContextConfig &config, core::IAllocator &allocator) | |
| Initialize. | |
| ~Context () | |
| Deinitialize. | |
| bool | valid () |
| Check if successfully constructed. | |
| void | incref () |
| Increment context reference counter. | |
| void | decref () |
| Decrement context reference counter. | |
| bool | is_used () |
| Check if context is still in use. | |
| core::IAllocator & | allocator () |
| Get allocator. | |
| packet::PacketFactory & | packet_factory () |
| Get packet factory. | |
| core::BufferFactory< uint8_t > & | byte_buffer_factory () |
| Get byte buffer factory. | |
| core::BufferFactory< audio::sample_t > & | sample_buffer_factory () |
| Get sample buffer factory. | |
| netio::NetworkLoop & | network_loop () |
| Get network event loop. | |
| ctl::ControlLoop & | control_loop () |
| Get control event loop. | |
|
explicit |
Initialize.
| roc::peer::Context::~Context | ( | ) |
Deinitialize.
| core::IAllocator & roc::peer::Context::allocator | ( | ) |
Get allocator.
| core::BufferFactory< uint8_t > & roc::peer::Context::byte_buffer_factory | ( | ) |
Get byte buffer factory.
| ctl::ControlLoop & roc::peer::Context::control_loop | ( | ) |
Get control event loop.
| void roc::peer::Context::decref | ( | ) |
Decrement context reference counter.
| void roc::peer::Context::incref | ( | ) |
Increment context reference counter.
| bool roc::peer::Context::is_used | ( | ) |
Check if context is still in use.
| netio::NetworkLoop & roc::peer::Context::network_loop | ( | ) |
Get network event loop.
| packet::PacketFactory & roc::peer::Context::packet_factory | ( | ) |
Get packet factory.
| core::BufferFactory< audio::sample_t > & roc::peer::Context::sample_buffer_factory | ( | ) |
Get sample buffer factory.
| bool roc::peer::Context::valid | ( | ) |
Check if successfully constructed.