|
AsyncBerkeley
Asynchronous Berkeley sockets. Simple.
|
An operation state for the poll multiplexer. More...
#include <io/execution/poll_multiplexer.hpp>
Inherits task.
Public Member Functions | |
| auto | start () noexcept -> void |
| Starts the operation. | |
Static Public Member Functions | |
| static auto | complete (task *task_ptr) noexcept -> void |
| Completes the operation. | |
Public Attributes | |
| Fn | func |
| The completion handler. | |
| std::shared_ptr< socket_handle > | socket |
| The socket to operate on. | |
| Receiver | receiver {} |
| The receiver to complete. | |
| demultiplexer * | demux = nullptr |
| The demultiplexer for the socket. | |
| mutex * | mtx = nullptr |
| A mutex for thread safety. | |
| execution_trigger | trigger {} |
| The poll trigger. | |
An operation state for the poll multiplexer.
This struct contains the state for an I/O operation. It is created when a sender is connected to a receiver.
| Receiver | The receiver type. |
|
staticnoexcept |
Completes the operation.
| task_ptr | The task to complete. |