Stop a client context.
This function blocks until all callbacks are handled and the system has been stopped. Once stop has been called no more callbacks can be initiated and no more actions such as connects can be made. After stop has returned it is still possible to free objects.
NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API nabto_client_stop2(NabtoClient* context)
- [in] The NabtoClient to stop.
NABTO_CLIENT_EC_COULD_BLOCK: if called from a callback.
NABTO_CLIENT_EC_OK: if the system was stopped.