|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Add UDP datagram receiver port. More...
#include <network_loop.h>
Public Member Functions | |
| AddUdpReceiverPort (UdpReceiverConfig &config, packet::IWriter &writer) | |
| Set task parameters. | |
| PortHandle | get_handle () const |
| Get created port handle. | |
Public Member Functions inherited from roc::netio::NetworkTask | |
| bool | success () const |
| Check that the task finished and succeeded. | |
Public Member Functions inherited from roc::core::MpscQueueNode | |
| MpscQueueData * | mpsc_queue_data () const |
| Get list node data. | |
Friends | |
| class | NetworkLoop |
Additional Inherited Members | |
Protected Types inherited from roc::netio::NetworkTask | |
| enum | State { StateInitialized , StatePending , StateClosingPort , StateFinishing , StateFinished } |
| Task state. More... | |
Protected Attributes inherited from roc::netio::NetworkTask | |
| void(NetworkLoop::* | func_ )(NetworkTask &) |
| Task implementation method. | |
| core::Atomic< int > | state_ |
| Task state, defines whether task is finished already. The task becomes immutable after setting state to Finished. | |
| core::Atomic< int > | success_ |
| Task result, defines wether finished task succeeded or failed. Makes sense only after setting state_ to Finished. This atomic should be assigned before setting state_ to Finished. | |
| core::SharedPtr< BasicPort > | port_ |
| On which port the task operates. | |
| void * | port_handle_ |
| Port handle. | |
| INetworkTaskCompleter * | completer_ |
| Completion handler. | |
| core::Optional< core::Semaphore > | sem_ |
| Completion semaphore. | |
Add UDP datagram receiver port.
Definition at line 61 of file network_loop.h.
| roc::netio::NetworkLoop::Tasks::AddUdpReceiverPort::AddUdpReceiverPort | ( | UdpReceiverConfig & | config, |
| packet::IWriter & | writer | ||
| ) |
Set task parameters.
config with the actual bind address.writer. It is called from network thread. It should not block the caller. | PortHandle roc::netio::NetworkLoop::Tasks::AddUdpReceiverPort::get_handle | ( | ) | const |
Get created port handle.
|
friend |
Definition at line 76 of file network_loop.h.