Limit concurrent TCP tunnel connections of a specific service type.
Tcp tunnel connections are opened when a TCP connection is established through a TCP tunnel.
If the limit is reached, new TCP tunnels can still be created by the clients as they do not create a connection immediately.
If the limit is decreased after TCP tunnel connections have been made, the existing tcp tunnel connections are not closed but new TCP tunnel connections will be subject to the limit and old tcp tunnel connections count towards the limit.
NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_limit_tcp_tunnel_connections(NabtoDevice* device, const char* serviceType, size_t limit)
- [in] The device instance
- [in] Type of services to limit.
- [in] The new limit for TCP tunnel connections of the specific type.
NABTO_DEVICE_EC_OK: if the limit is set
NABTO_DEVICE_EC_OUT_OF_MEMORY: if the limit could not be added to the internal data structure.