Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::peer::Context Class Reference

Peer context. More...

#include <context.h>

Inheritance diagram for roc::peer::Context:
roc::core::NonCopyable< T >

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::IAllocatorallocator ()
 Get allocator.
 
packet::PacketFactorypacket_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::NetworkLoopnetwork_loop ()
 Get network event loop.
 
ctl::ControlLoopcontrol_loop ()
 Get control event loop.
 

Detailed Description

Peer context.

Definition at line 45 of file context.h.

Constructor & Destructor Documentation

◆ Context()

roc::peer::Context::Context ( const ContextConfig config,
core::IAllocator allocator 
)
explicit

Initialize.

◆ ~Context()

roc::peer::Context::~Context ( )

Deinitialize.

Member Function Documentation

◆ allocator()

core::IAllocator & roc::peer::Context::allocator ( )

Get allocator.

◆ byte_buffer_factory()

core::BufferFactory< uint8_t > & roc::peer::Context::byte_buffer_factory ( )

Get byte buffer factory.

◆ control_loop()

ctl::ControlLoop & roc::peer::Context::control_loop ( )

Get control event loop.

◆ decref()

void roc::peer::Context::decref ( )

Decrement context reference counter.

◆ incref()

void roc::peer::Context::incref ( )

Increment context reference counter.

◆ is_used()

bool roc::peer::Context::is_used ( )

Check if context is still in use.

◆ network_loop()

netio::NetworkLoop & roc::peer::Context::network_loop ( )

Get network event loop.

◆ packet_factory()

packet::PacketFactory & roc::peer::Context::packet_factory ( )

Get packet factory.

◆ sample_buffer_factory()

core::BufferFactory< audio::sample_t > & roc::peer::Context::sample_buffer_factory ( )

Get sample buffer factory.

◆ valid()

bool roc::peer::Context::valid ( )

Check if successfully constructed.


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