|
CCF
|
Pending writes on both host and enclave, with data, length and destination address. More...
#include <pending_io.h>
Public Types | |
| using | free_cb_t = void(*)(T *) |
Public Member Functions | |
| PendingIO (T *req_, size_t len_, sockaddr addr_, free_cb_t free_cb_=nullptr) | |
| PendingIO (PendingIO &&that) noexcept | |
| PendingIO< T > & | operator= (PendingIO &&that) noexcept |
| ~PendingIO () | |
Static Public Member Functions | |
| static void | clear_empty (std::vector< PendingIO< T > > &list) |
| Clears a list of PendingIO<T> of all elements that were marked to remove (clear flag == true). | |
Public Attributes | |
| T * | req |
| size_t | len |
| sockaddr | addr |
| free_cb_t | free_cb |
| bool | clear = false |
Pending writes on both host and enclave, with data, length and destination address.
| T | uv_write_t for TCP and uv_udp_send_t for UDP send, uint8_t for receive. |
The free_cb is called on destruction to free the request.
| using PendingIO< T >::free_cb_t = void (*)(T*) |
|
inline |
|
inlinenoexcept |
|
inlinestatic |
Clears a list of PendingIO<T> of all elements that were marked to remove (clear flag == true).
|
inlinenoexcept |
| sockaddr PendingIO< T >::addr |
| bool PendingIO< T >::clear = false |
| size_t PendingIO< T >::len |
| T* PendingIO< T >::req |