nabto_client_connection_enable_direct_candidates()
DESCRIPTION
Enable direct communication for a connection, using candidates provided by the nabto_client_connection_add_direct_candidate function.
Direct connections is a way to make the client create a connection to a device which can be reached directly with ip communication.
Usage:
1. call nabto_client_connection_enable_direct_candidates();
2. call nabto_client_connection_connect();
3. call nabto_client_connection_add_direct_candidate();
4. call nabto_client_connection_end_of_direct_candidates();
DECLARATION
NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_connection_enable_direct_candidates(NabtoClientConnection* connection)
PARAMETERS
connection:
- [in] The connection,
RETURNS
NABTO_CLIENT_EC_OK if direct candidates was enabled.