Response body bytes handed to nghttp3, kept until the peer ACKs them.
More...
#include <QuicHttp3Session.hpp>
|
| void | push (std::string chunk) |
| | Appends a chunk to send. Empty chunks are ignored.
|
| |
| size_t | hand_out (nghttp3_vec *vec, size_t n) |
| | Points up to n vecs at chunks not handed out yet; returns how many.
|
| |
| void | ack (uint64_t bytes) |
| | Frees chunks whose bytes are all acknowledged.
|
| |
| bool | has_unsent () const |
| | True if some chunk has not been handed out yet.
|
| |
| size_t | held () const |
| | Chunks still held (not yet handed out, or not yet acknowledged).
|
| |
Response body bytes handed to nghttp3, kept until the peer ACKs them.
nghttp3 references the bytes it is given until acked_stream_data reports them acknowledged, which happens in the order they were handed out. A deque never moves its elements, so handed-out chunks stay put while more are appended.
◆ ack()
| void orbit::server::quic::detail::SentChunks::ack |
( |
uint64_t |
bytes | ) |
|
Frees chunks whose bytes are all acknowledged.
◆ hand_out()
| size_t orbit::server::quic::detail::SentChunks::hand_out |
( |
nghttp3_vec * |
vec, |
|
|
size_t |
n |
|
) |
| |
Points up to n vecs at chunks not handed out yet; returns how many.
◆ has_unsent()
| bool orbit::server::quic::detail::SentChunks::has_unsent |
( |
| ) |
const |
|
inline |
True if some chunk has not been handed out yet.
◆ held()
| size_t orbit::server::quic::detail::SentChunks::held |
( |
| ) |
const |
|
inline |
Chunks still held (not yet handed out, or not yet acknowledged).
◆ push()
| void orbit::server::quic::detail::SentChunks::push |
( |
std::string |
chunk | ) |
|
Appends a chunk to send. Empty chunks are ignored.
◆ chunks_
| std::deque<std::string> orbit::server::quic::detail::SentChunks::chunks_ |
|
private |
◆ front_acked_
| uint64_t orbit::server::quic::detail::SentChunks::front_acked_ = 0 |
|
private |
◆ handed_out_
| size_t orbit::server::quic::detail::SentChunks::handed_out_ = 0 |
|
private |
The documentation for this class was generated from the following file: