nabto_client_connection_get_direct_candidates_channel_error_code()

DESCRIPTION

Get error code for the direct chandidates channels

DECLARATION

NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_connection_get_direct_candidates_channel_error_code(NabtoClientConnection* connection)

PARAMETERS

connection:
[in] The connection on which the direct channel is opened for which the error should be retrieved.

RETURNS

  • NABTO_CLIENT_EC_OK: if a direct candidate was found.
  • NABTO_CLIENT_EC_NONE: direct candidates was not enabled.
  • NABTO_CLIENT_EC_NOT_FOUND: If no direct candidates resulted in UDP ping responses.
  • NABTO_CLIENT_EC_OPERATION_IN_PROGRESS: if opening of the direct candidate is in progress.