nabto_device_ice_servers_request_get_credential()

DESCRIPTION

Get the credential of an ICE server from its index.

If the ICE server at the index is a STUN server, the credential is NULL. The credential is freed with the request.

DECLARATION

NABTO_DEVICE_DECL_PREFIX const char* NABTO_DEVICE_API
nabto_device_ice_servers_request_get_credential(NabtoDeviceIceServersRequest* request, size_t index)

PARAMETERS

request:
[in] The request to get the ICE server from
index:
[in] Index of the ICE server to get the credential of.

RETURNS

The credential for a TURN server, or NULL for a STUN server.