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::IArena &arena) | |
Initialize. More... | |
~UdpSenderPort () | |
Destroy. More... | |
const address::SocketAddr & | bind_address () const |
Get bind address. More... | |
virtual bool | open () |
Open sender. More... | |
virtual AsyncOperationStatus | async_close (ICloseHandler &handler, void *handler_arg) |
Asynchronously close sender. More... | |
virtual ROC_ATTR_NODISCARD status::StatusCode | write (const packet::PacketPtr &) |
Write packet. More... | |
Public Member Functions inherited from roc::netio::BasicPort | |
BasicPort (core::IArena &) | |
Initialize. More... | |
virtual | ~BasicPort () |
Destroy. More... | |
const char * | descriptor () const |
Get a human-readable port description. More... | |
Public Member Functions inherited from roc::core::RefCounted< BasicPort, 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 | |
ListNodeData * | list_node_data () const |
Get list node data. More... | |
Protected Member Functions | |
virtual void | format_descriptor (core::StringBuilder &b) |
Format descriptor. More... | |
Protected Member Functions inherited from roc::netio::BasicPort | |
void | update_descriptor () |
Format descriptor and store into internal buffer. 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... | |
UDP sender.
Definition at line 58 of file udp_sender_port.h.
roc::netio::UdpSenderPort::UdpSenderPort | ( | const UdpSenderConfig & | config, |
uv_loop_t & | event_loop, | ||
core::IArena & | arena | ||
) |
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 |