![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
UDP sender. More...
#include <udp_sender_port.h>
Public Member Functions | |
UdpSenderPort (const UdpSenderConfig &config, uv_loop_t &event_loop, core::IAllocator &allocator) | |
Initialize. | |
~UdpSenderPort () | |
Destroy. | |
const address::SocketAddr & | bind_address () const |
Get bind address. | |
virtual bool | open () |
Open sender. | |
virtual AsyncOperationStatus | async_close (ICloseHandler &handler, void *handler_arg) |
Asynchronously close sender. | |
virtual void | write (const packet::PacketPtr &) |
Write packet. | |
![]() | |
BasicPort (core::IAllocator &) | |
Initialize. | |
virtual | ~BasicPort () |
Destroy. | |
const char * | descriptor () const |
Get a human-readable port description. | |
virtual bool | open ()=0 |
Open port. | |
virtual AsyncOperationStatus | async_close (ICloseHandler &handler, void *handler_arg)=0 |
Asynchronous close. | |
![]() | |
RefCounted () | |
Initialization with default allocation policy. | |
RefCounted (const core::StandardAllocation &policy) | |
Initialization with arbitrary allocation policy. | |
long | getref () const |
Get reference counter. | |
void | incref () const |
Increment reference counter. | |
void | decref () const |
Decrement reference counter. | |
![]() | |
ListNodeData * | list_node_data () const |
Get list node data. | |
virtual void | write (const PacketPtr &)=0 |
Write packet. | |
Protected Member Functions | |
virtual void | format_descriptor (core::StringBuilder &b) |
Format descriptor. | |
![]() | |
void | update_descriptor () |
Format descriptor and store into internal buffer. | |
virtual void | format_descriptor (core::StringBuilder &b)=0 |
Implementation of descriptor formatting. | |
![]() | |
IAllocator & | allocator () const |
Get allocator. | |
StandardAllocation () | |
Initialize in invalid state. Such instance wont be usable. | |
StandardAllocation (IAllocator &allocator) | |
Initialize with given allocator. Such instance will use allocator to destroy objects. | |
template<class T > | |
void | destroy (T &object) |
Destroy object and deallocate its memory. | |
UDP sender.
Definition at line 53 of file udp_sender_port.h.
roc::netio::UdpSenderPort::UdpSenderPort | ( | const UdpSenderConfig & | config, |
uv_loop_t & | event_loop, | ||
core::IAllocator & | allocator | ||
) |
Initialize.
roc::netio::UdpSenderPort::~UdpSenderPort | ( | ) |
Destroy.
|
virtual |
Asynchronously close sender.
Implements roc::netio::BasicPort.
const address::SocketAddr & roc::netio::UdpSenderPort::bind_address | ( | ) | const |
Get bind address.
|
protectedvirtual |
Format descriptor.
Implements roc::netio::BasicPort.
|
virtual |
Open sender.
Implements roc::netio::BasicPort.
|
virtual |