ngtcp2_conn_shutdown_stream_read
Synopsis
#include <ngtcp2/ngtcp2.h>
-
int ngtcp2_conn_shutdown_stream_read(ngtcp2_conn *conn, uint32_t flags, int64_t stream_id, uint64_t app_error_code)
ngtcp2_conn_shutdown_stream_read()
closes read-side of a stream denoted by stream_id abruptly. app_error_code is one of application error codes, and indicates the reason of shutdown. If this function succeeds, no further application data is forwarded to an application layer.flags is currently unused, and should be set to 0.
This function returns 0 if a stream denoted by stream_id is not found.
This function returns 0 if it succeeds, or one of the following negative error codes:
NGTCP2_ERR_NOMEM
Out of memory
NGTCP2_ERR_INVALID_ARGUMENT
stream_id refers to a local unidirectional stream.