dwnx_conn_open_uni_stream

Synopsis

#include <dwnx/dwnx.h>

int dwnx_conn_open_uni_stream(dwnx_conn *conn, int64_t *pstream_id, void *stream_user_data)

dwnx_conn_open_uni_stream() opens new unidirectional stream. The stream_user_data is the user data specific to the stream. The stream ID of the opened stream is stored in *pstream_id.

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

DWNX_ERR_NOMEM

Out of memory

DWNX_ERR_STREAM_ID_BLOCKED

The remote endpoint does not allow stream_id yet.