nghttp3_conn_update_ack_offset

Synopsis

#include <nghttp3/nghttp3.h>

int nghttp3_conn_update_ack_offset(nghttp3_conn *conn, int64_t stream_id, uint64_t offset)

nghttp3_conn_update_ack_offset() tells conn that QUIC stack has acknowledged the stream data up to offset for a stream denoted by stream_id.

If a stream denoted by stream_id is not found, this function returns 0.

Alternatively, nghttp3_conn_add_ack_offset() can be used to accomplish the same thing.

This function returns 0 if it succeeds, or one of the following negative error codes:

NGHTTP3_ERR_INVALID_ARGUMENT

offset is less than the number of bytes acknowledged so far.

NGHTTP3_ERR_CALLBACK_FAILURE

User callback failed.