dwnx_conn_open_bidi_stream
Synopsis
#include <dwnx/dwnx.h>
-
int dwnx_conn_open_bidi_stream(dwnx_conn *conn, int64_t *pstream_id, void *stream_user_data)
dwnx_conn_open_bidi_stream()opens new bidirectional 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_NOMEMOut of memory
DWNX_ERR_STREAM_ID_BLOCKEDThe remote endpoint does not allow stream_id yet.