Class coro::io_work_t¶
Class List > coro > io_work_t
A struct to describe "1 I/O request" to system API. When I/O request is submitted, an I/O task becomes 1 coroutine handle.
#include <net.h>
Inherits the following classes: io_control_block
Inherited by the following classes: coro::io_recv, coro::io_recv_from, coro::io_send, coro::io_send_to
Public Attributes¶
Type | Name |
---|---|
io_buffer_t | buffer = {} |
coroutine_handle< void > | task = {} |
Public Functions¶
Type | Name |
---|---|
uint32_t | error () noexcept const Multiple retrieving won't be a matter. |
Protected Functions¶
Type | Name |
---|---|
bool | ready () noexcept const |
Public Attributes Documentation¶
variable buffer¶
io_buffer_t coro::io_work_t::buffer;
variable task¶
coroutine_handle<void> coro::io_work_t::task;
Public Functions Documentation¶
function error¶
uint32_t coro::io_work_t::error () noexcept const
Returns:
uint32_t error code from the system
Protected Functions Documentation¶
function ready¶
bool coro::io_work_t::ready () noexcept const
See also: await_ready
Returns:
true The given socket can be use for non-blocking operations
Returns:
false For Windows, the return is always false
The documentation for this class was generated from the following file interface/coroutine/net.h