|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
TCP server. More...
#include <tcp_server_port.h>
Public Member Functions | |
| TcpServerPort (const TcpServerConfig &config, IConnAcceptor &conn_acceptor, uv_loop_t &loop, core::IAllocator &allocator) | |
| 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::IAllocator &) | |
| Initialize. | |
| virtual | ~BasicPort () |
| Destroy. | |
| const char * | descriptor () const |
| Get a human-readable port description. | |
| virtual bool | open ()=0 |
| Open port. | |
| virtual AsyncOperationStatus | async_close (ICloseHandler &handler, void *handler_arg)=0 |
| Asynchronous close. | |
Public Member Functions inherited from roc::core::RefCounted< BasicPort, core::StandardAllocation > | |
| RefCounted () | |
| Initialization with default allocation policy. | |
| RefCounted (const core::StandardAllocation &policy) | |
| Initialization with arbitrary allocation policy. | |
| long | 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. | |
| virtual void | format_descriptor (core::StringBuilder &b)=0 |
| Implementation of descriptor formatting. | |
Protected Member Functions inherited from roc::core::StandardAllocation | |
| IAllocator & | allocator () const |
| Get allocator. | |
| StandardAllocation () | |
| Initialize in invalid state. Such instance wont be usable. | |
| StandardAllocation (IAllocator &allocator) | |
| Initialize with given allocator. Such instance will use allocator to destroy objects. | |
| template<class T > | |
| void | destroy (T &object) |
| Destroy object and deallocate its memory. | |
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::IAllocator & | allocator | ||
| ) |
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.