nghttp3_conn_bind_control_stream

Synopsis

#include <nghttp3/nghttp3.h>

int nghttp3_conn_bind_control_stream(nghttp3_conn *conn, int64_t stream_id)

nghttp3_conn_bind_control_stream() binds stream denoted by stream_id to outgoing unidirectional control stream.

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

NGHTTP3_ERR_INVALID_STATE

Control stream has already corresponding stream ID.

NGHTTP3_ERR_NOMEM

Out of memory.