nabto_client_stop2()
DESCRIPTION
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.
DECLARATION
NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_stop2(NabtoClient* context)
PARAMETERS
context:
- [in] The NabtoClient to stop.
RETURNS
NABTO_CLIENT_EC_COULD_BLOCK
: if called from a callback.NABTO_CLIENT_EC_OK
: if the system was stopped.