|
RESTinio
|
Write operaton using sendfile. More...
#include <write_group_output_ctx.hpp>
Public Member Functions | |
| file_write_operation_t (const file_write_operation_t &)=default | |
| file_write_operation_t & | operator= (const file_write_operation_t &)=default |
| file_write_operation_t (file_write_operation_t &&)=default | |
| file_write_operation_t & | operator= (file_write_operation_t &&)=default |
| template<typename Socket, typename After_Write_CB> | |
| void | start_sendfile_operation (default_asio_executor executor, Socket &socket, After_Write_CB after_sendfile_cb) |
| Start a sendfile operation. | |
| auto | timelimit () const noexcept |
| Get the timelimit on this sendfile operation. | |
| void | reset () noexcept |
| Reset write operation context. | |
| auto | size () const noexcept |
| Get the size of sendfile operation. | |
Private Member Functions | |
| file_write_operation_t (sendfile_t &sendfile, sendfile_operation_shared_ptr_t &sendfile_operation) noexcept | |
Private Attributes | |
| sendfile_t * | m_sendfile |
| A pointer to sendfile. | |
| sendfile_operation_shared_ptr_t * | m_sendfile_operation |
| A curernt sendfile operation. | |
Friends | |
| class | write_group_output_ctx_t |
Write operaton using sendfile.
Definition at line 141 of file write_group_output_ctx.hpp.
|
inlineexplicitprivatenoexcept |
Definition at line 145 of file write_group_output_ctx.hpp.
|
default |
|
default |
|
default |
|
default |
|
inlinenoexcept |
Reset write operation context.
Definition at line 206 of file write_group_output_ctx.hpp.
|
inlinenoexcept |
Get the size of sendfile operation.
Definition at line 212 of file write_group_output_ctx.hpp.
|
inline |
Start a sendfile operation.
Definition at line 167 of file write_group_output_ctx.hpp.
|
inlinenoexcept |
Get the timelimit on this sendfile operation.
Definition at line 193 of file write_group_output_ctx.hpp.
|
friend |
Definition at line 143 of file write_group_output_ctx.hpp.
|
private |
A pointer to sendfile.
Definition at line 216 of file write_group_output_ctx.hpp.
|
private |
A curernt sendfile operation.
This context must be external to file_write_operation_t instance (in order to avoid circle links).
Definition at line 223 of file write_group_output_ctx.hpp.