Networking_Proxy_Destroy Function

Header: #include <applibs/networking.h>

Destroys the specified Networking_ProxyConfig struct.

  void Networking_Proxy_Destroy(Networking_ProxyConfig *proxyConfig);

Parameters

Remarks

It's unsafe to call this function on a struct that hasn't been initialized. After this function is called, the specified Networking_ProxyConfig struct must not be used until it is re-initialized by a call to the Networking_Proxy_Create function.

Concepts and samples

The proxy code snippets demonstrate the following:

  • The Configure Proxy Settings code snippet demonstrates how to configure the proxy settings on an Azure Sphere device.
  • The Get Proxy Settings code snippet demonstrates how to retrieve the proxy settings on an Azure Sphere device.
  • The Enable/Disable Configured Proxy code snippet demonstrates how to enable/disable an already configured proxy on an Azure Sphere device.

The HTTPS samples demonstrate using the HTTPS_Curl_Easy and HTTPS_Curl_Multi APIs to fetch content over HTTPS. By default, they configure the cURL handle to use a proxy.

The AzureIoT sample contains instructions and code for adding web proxy support to the sample.