Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
UDP sender/receiver port. More...
#include <udp_port.h>
Public Member Functions | |
UdpPort (const UdpConfig &config, uv_loop_t &event_loop, packet::PacketFactory &packet_factory, core::IArena &arena) | |
Initialize. More... | |
virtual | ~UdpPort () |
Destroy. More... | |
const address::SocketAddr & | bind_address () const |
Get bind address. More... | |
virtual bool | open () |
Open receiver. More... | |
virtual AsyncOperationStatus | async_close (ICloseHandler &handler, void *handler_arg) |
Asynchronously close receiver. More... | |
packet::IWriter * | start_send () |
Start receiving packets. More... | |
bool | start_recv (packet::IWriter &inbound_writer) |
Start receiving packets. 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< Tag > | |
ListData * | list_data () const |
Get pointer to internal 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... | |
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... | |
UDP sender/receiver port.
Definition at line 70 of file udp_port.h.
roc::netio::UdpPort::UdpPort | ( | const UdpConfig & | config, |
uv_loop_t & | event_loop, | ||
packet::PacketFactory & | packet_factory, | ||
core::IArena & | arena | ||
) |
Initialize.
|
virtual |
Destroy.
|
virtual |
Asynchronously close receiver.
Implements roc::netio::BasicPort.
const address::SocketAddr& roc::netio::UdpPort::bind_address | ( | ) | const |
Get bind address.
|
protectedvirtual |
Format descriptor.
Implements roc::netio::BasicPort.
|
virtual |
Open receiver.
Implements roc::netio::BasicPort.
bool roc::netio::UdpPort::start_recv | ( | packet::IWriter & | inbound_writer | ) |
Start receiving packets.
packet::IWriter* roc::netio::UdpPort::start_send | ( | ) |
Start receiving packets.