|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
UDP receiver. More...
#include <udp_receiver_port.h>
Public Member Functions | |
| UdpReceiverPort (const UdpReceiverConfig &config, packet::IWriter &writer, uv_loop_t &event_loop, packet::PacketFactory &packet_factory, core::BufferFactory< uint8_t > &buffer_factory, core::IArena &arena) | |
| Initialize. | |
| virtual | ~UdpReceiverPort () |
| Destroy. | |
| const address::SocketAddr & | bind_address () const |
| Get bind address. | |
| virtual bool | open () |
| Open receiver. | |
| virtual AsyncOperationStatus | async_close (ICloseHandler &handler, void *handler_arg) |
| Asynchronously close receiver. | |
Public Member Functions inherited from roc::netio::BasicPort | |
| BasicPort (core::IArena &) | |
| Initialize. | |
| virtual | ~BasicPort () |
| Destroy. | |
| const char * | descriptor () const |
| Get a human-readable port description. | |
Public Member Functions inherited from roc::core::RefCounted< BasicPort, core::ArenaAllocation > | |
| RefCounted () | |
| Initialize. | |
| RefCounted (const core::ArenaAllocation &policy) | |
| Initialize. | |
| int | getref () const |
| Get reference counter. | |
| void | incref () const |
| Increment reference counter. | |
| void | decref () const |
| Decrement reference counter. | |
Public Member Functions inherited from roc::core::ListNode | |
| ListNodeData * | list_node_data () const |
| Get list node data. | |
Protected Member Functions | |
| virtual void | format_descriptor (core::StringBuilder &b) |
| Format descriptor. | |
Protected Member Functions inherited from roc::netio::BasicPort | |
| void | update_descriptor () |
| Format descriptor and store into internal buffer. | |
Protected Member Functions inherited from roc::core::ArenaAllocation | |
| IArena & | arena () const |
| Get arena. | |
| ArenaAllocation (IArena &arena) | |
| Initialize. | |
| template<class T > | |
| void | destroy (T &object) |
| Destroy object and return memory to arena. | |
UDP receiver.
Definition at line 53 of file udp_receiver_port.h.
| roc::netio::UdpReceiverPort::UdpReceiverPort | ( | const UdpReceiverConfig & | config, |
| packet::IWriter & | writer, | ||
| uv_loop_t & | event_loop, | ||
| packet::PacketFactory & | packet_factory, | ||
| core::BufferFactory< uint8_t > & | buffer_factory, | ||
| core::IArena & | arena ) |
Initialize.
|
virtual |
Destroy.
|
virtual |
Asynchronously close receiver.
Implements roc::netio::BasicPort.
| const address::SocketAddr & roc::netio::UdpReceiverPort::bind_address | ( | ) | const |
Get bind address.
|
protectedvirtual |
Format descriptor.
Implements roc::netio::BasicPort.
|
virtual |
Open receiver.
Implements roc::netio::BasicPort.