Close a stream. When a stream has been closed no further data can be written to the stream. Data can however still be read from the stream until the other peer closes the stream.
When close resolves all written data has been acknowledged by the other peer.
NABTO_DEVICE_DECL_PREFIX void NABTO_DEVICE_API nabto_device_stream_close(NabtoDeviceStream* stream, NabtoDeviceFuture* future)
- [in] The stream to close.
- [in] Future to resolve when stream is closed or on error.