Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Base class for ports. More...
#include <basic_port.h>
Public Member Functions | |
BasicPort (core::IArena &) | |
Initialize. More... | |
virtual | ~BasicPort () |
Destroy. More... | |
const char * | descriptor () const |
Get a human-readable port description. More... | |
virtual bool | open ()=0 |
Open port. More... | |
virtual AsyncOperationStatus | async_close (ICloseHandler &handler, void *handler_arg)=0 |
Asynchronous close. 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 | |
void | update_descriptor () |
Format descriptor and store into internal buffer. More... | |
virtual void | format_descriptor (core::StringBuilder &b)=0 |
Implementation of descriptor formatting. 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... | |
Base class for ports.
Port is a transport-level endpoint, sending or receiving data from remote peer, like UDP sender or receiver, TCP listening socket, or TCP connection.
The following rules must be followed:
Definition at line 39 of file basic_port.h.
|
explicit |
Initialize.
|
virtual |
Destroy.
|
pure virtual |
Asynchronous close.
Implemented in roc::netio::UdpPort, roc::netio::TcpServerPort, and roc::netio::TcpConnectionPort.
const char* roc::netio::BasicPort::descriptor | ( | ) | const |
Get a human-readable port description.
|
protectedpure virtual |
Implementation of descriptor formatting.
Implemented in roc::netio::UdpPort, roc::netio::TcpServerPort, and roc::netio::TcpConnectionPort.
|
pure virtual |
Open port.
Implemented in roc::netio::UdpPort, roc::netio::TcpServerPort, and roc::netio::TcpConnectionPort.
|
protected |
Format descriptor and store into internal buffer.