nghttp3_conn_add_write_offset
Synopsis
#include <nghttp3/nghttp3.h>
-
int nghttp3_conn_add_write_offset(nghttp3_conn *conn, int64_t stream_id, size_t n)
nghttp3_conn_add_write_offset()
tells conn the number of bytes n for stream denoted by stream_id QUIC stack accepted.If stream has no data to send but just sends fin (closing the write side of a stream), the number of bytes sent is 0. It is important to call this function even if n is 0 in this case. It is safe to call this function if n is 0.
nghttp3_conn_writev_stream()
must be called before calling this function to get data to send, and those data must be fed into QUIC stack.If a stream denoted by stream_id is not found, this function returns 0.
This function returns 0 if it succeeds, or one of the following negative error codes:
NGHTTP3_ERR_NOMEM
Out of memory.