jaulib v1.3.8
Jau Support Library (C++, Java, ..)
|
Asynchronous stream response. More...
#include <io_util.hpp>
Public Member Functions | |
AsyncStreamResponse () | |
AsyncStreamResponse (net_tk_handle handle_) | |
constexpr_atomic bool | failed () const noexcept |
Stream failed and is aborted, i.e. | |
constexpr_atomic bool | processing () const noexcept |
Stream processing in progress, i.e. | |
constexpr_atomic bool | success () const noexcept |
Stream completed successfully, i.e. | |
Public Attributes | |
relaxed_atomic_uint64 | content_length |
content_length tracking the content_length | |
net_tk_handle | handle |
used network tookit handle, if owned by caller | |
relaxed_atomic_bool | has_content_length |
indicating whether content_length is known from server | |
url_header_resp | header_resp |
synchronized URL header response completion | |
relaxed_atomic_io_result_t | result |
tracking io_result_t. If set to other than io_result_t::NONE while streaming, streaming is aborted. See failed(), processing() and success() | |
std::vector< uint8_t > | result_data |
piggy-bag result data compiled by user, e.g. via AsyncStreamConsumerFunc | |
std::string | result_text |
piggy-bag result data compiled by user, e.g. via AsyncStreamConsumerFunc | |
std::thread | thread |
background reading thread unique-pointer | |
relaxed_atomic_uint64 | total_read |
tracking the total_read | |
Asynchronous stream response.
Definition at line 326 of file io_util.hpp.
|
inline |
|
inline |
Definition at line 335 of file io_util.hpp.
|
inlinenoexcept |
Stream failed and is aborted, i.e.
io_result_t::FAILED == result
Definition at line 339 of file io_util.hpp.
|
inlinenoexcept |
Stream processing in progress, i.e.
io_result_t::NONE == result
Definition at line 341 of file io_util.hpp.
|
inlinenoexcept |
Stream completed successfully, i.e.
io_result_t::SUCCESS == result
Definition at line 343 of file io_util.hpp.
net_tk_handle jau::io::AsyncStreamResponse::handle |
used network tookit handle, if owned by caller
Definition at line 346 of file io_util.hpp.
std::thread jau::io::AsyncStreamResponse::thread |
background reading thread unique-pointer
Definition at line 348 of file io_util.hpp.
url_header_resp jau::io::AsyncStreamResponse::header_resp |
synchronized URL header response completion
Definition at line 350 of file io_util.hpp.
relaxed_atomic_bool jau::io::AsyncStreamResponse::has_content_length |
indicating whether content_length is known from server
Definition at line 352 of file io_util.hpp.
relaxed_atomic_uint64 jau::io::AsyncStreamResponse::content_length |
content_length tracking the content_length
Definition at line 354 of file io_util.hpp.
relaxed_atomic_uint64 jau::io::AsyncStreamResponse::total_read |
tracking the total_read
Definition at line 356 of file io_util.hpp.
relaxed_atomic_io_result_t jau::io::AsyncStreamResponse::result |
tracking io_result_t. If set to other than io_result_t::NONE while streaming, streaming is aborted. See failed(), processing() and success()
Definition at line 358 of file io_util.hpp.
std::vector<uint8_t> jau::io::AsyncStreamResponse::result_data |
piggy-bag result data compiled by user, e.g. via AsyncStreamConsumerFunc
Definition at line 360 of file io_util.hpp.
std::string jau::io::AsyncStreamResponse::result_text |
piggy-bag result data compiled by user, e.g. via AsyncStreamConsumerFunc
Definition at line 362 of file io_util.hpp.