Handshake a stream. This function initializes and does a three way handshake on a stream.
NABTO_CLIENT_DECL_PREFIX void NABTO_CLIENT_API nabto_client_stream_open(NabtoClientStream* stream, NabtoClientFuture* future, uint32_t port)
- [in] The stream to connect.
- [in] The future.
- [in] The listening id/port to use for the stream. This is used to distinguish streams in the other end, like a port number.
A future when resolved the stream is either established or failed. Future status: NABTO_CLIENT_EC_OK if opening went ok. NABTO_CLIENT_EC_ABORTED if the stream could not be created, e.g. the handshake is aborted.