nabto_device_virtual_stream_write()

DESCRIPTION

Write bytes to a virtual stream.

DECLARATION

    NABTO_DEVICE_DECL_PREFIX void NABTO_DEVICE_API
        nabto_device_virtual_stream_write(NabtoDeviceVirtualStream* stream,
            NabtoDeviceFuture* future,
            const void* buffer,
            size_t bufferLength)

PARAMETERS

stream:
[in] The stream to write data to.
future:
[in] Future to resolve with the result of the operation.
buffer:
[in] The input buffer with data to write to the stream.
bufferLength:
[in] Length of the input data.

RETURNS

  • NABTO_DEVICE_EC_OK: on success