nghttp3_conn_close_stream2 ========================== Synopsis -------- *#include * .. function:: int nghttp3_conn_close_stream2(nghttp3_conn *conn, uint32_t flags, int64_t stream_id, uint64_t rx_app_error_code, uint64_t tx_app_error_code) `nghttp3_conn_close_stream2` tells the library that a stream identified by *stream_id* has been closed. If :macro:`NGHTTP3_STREAM_CLOSE_FLAG_RX_APP_ERROR_CODE_SET` is set in *flags*, *rx_app_error_code* is the QUIC application error code that shut down the receiving side of the stream. Similarly, :macro:`NGHTTP3_STREAM_CLOSE_FLAG_TX_APP_ERROR_CODE_SET` is set in *flags*, *tx_app_error_code* is the QUIC application error code that shut down the sending side of the stream. For stream close callback, prefer :member:`nghttp3_callbacks.stream_close2` to :member:`nghttp3_callbacks.stream_close`. This function returns 0 if it succeeds, or one of the following negative error codes: :macro:`NGHTTP3_ERR_STREAM_NOT_FOUND` Stream not found. :macro:`NGHTTP3_ERR_H3_CLOSED_CRITICAL_STREAM` A critical stream is closed. :macro:`NGHTTP3_ERR_CALLBACK_FAILURE` User callback failed .. version-added:: 1.18.0