nabto_device_limit_streams()

DESCRIPTION

Limit maximum number of concurrent streams.

Clients can create streams. This function limits the maximum amount of concurrent streams. Each tunnel connection uses a stream, so this option also has an effect on max allowed tunnel connections.

If the limit is reached, the client will get NABTO_CLIENT_EC_ABORTED when trying to make a new stream.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_limit_streams(NabtoDevice* device, size_t limit)

PARAMETERS

device:
[in] The device.
limit:
[in] The maximum number of concurrent streams.

RETURN VALUES

NABTO_DEVICE_EC_OK iff ok

EXAMPLES

None.