|
jaulib v1.4.0-2-g788cf73
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 310 of file io_util.hpp.
|
inline |
|
inline |
Definition at line 319 of file io_util.hpp.
|
inlinenoexcept |
Stream failed and is aborted, i.e.
io_result_t::FAILED == result
Definition at line 323 of file io_util.hpp.
|
inlinenoexcept |
Stream processing in progress, i.e.
io_result_t::NONE == result
Definition at line 325 of file io_util.hpp.
|
inlinenoexcept |
Stream completed successfully, i.e.
io_result_t::SUCCESS == result
Definition at line 327 of file io_util.hpp.
| net_tk_handle jau::io::AsyncStreamResponse::handle |
used network tookit handle, if owned by caller
Definition at line 330 of file io_util.hpp.
| std::thread jau::io::AsyncStreamResponse::thread |
background reading thread unique-pointer
Definition at line 332 of file io_util.hpp.
| url_header_resp jau::io::AsyncStreamResponse::header_resp |
synchronized URL header response completion
Definition at line 334 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 336 of file io_util.hpp.
| relaxed_atomic_uint64 jau::io::AsyncStreamResponse::content_length |
content_length tracking the content_length
Definition at line 338 of file io_util.hpp.
| relaxed_atomic_uint64 jau::io::AsyncStreamResponse::total_read |
tracking the total_read
Definition at line 340 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 342 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 344 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 346 of file io_util.hpp.