![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
TCP server. More...
#include <roc_netio/target_libuv/roc_netio/tcp_server_port.h>

Public Member Functions | |
| TcpServerPort (const TcpServerConfig &config, IConnAcceptor &conn_acceptor, uv_loop_t &loop, core::IArena &arena) | |
| Initialize. | |
| virtual | ~TcpServerPort () |
| Destroy. | |
| const address::SocketAddr & | bind_address () const |
| Get bind address. | |
| virtual bool | open () |
| Open TCP server. | |
| virtual AsyncOperationStatus | async_close (ICloseHandler &handler, void *handler_arg) |
| Asynchronously close TCP server. | |
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< Tag > | |
| ListData * | list_data () const |
| Get pointer to internal 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. | |
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. | |
TCP server.
Definition at line 48 of file tcp_server_port.h.
| roc::netio::TcpServerPort::TcpServerPort | ( | const TcpServerConfig & | config, |
| IConnAcceptor & | conn_acceptor, | ||
| uv_loop_t & | loop, | ||
| core::IArena & | arena | ||
| ) |
Initialize.
|
virtual |
Destroy.
|
virtual |
Asynchronously close TCP server.
Implements roc::netio::BasicPort.
| const address::SocketAddr & roc::netio::TcpServerPort::bind_address | ( | ) | const |
Get bind address.
|
protectedvirtual |
Format descriptor.
Implements roc::netio::BasicPort.
|
virtual |
Open TCP server.
Implements roc::netio::BasicPort.