Platform API Reference
Platform portability layer

Free resources used by a network connection.

IotNetworkError_t ( * destroy )( void * pConnection );

This function releases the resources of a closed connection. It should be called after IotNetworkInterface_t::close.

Parameters
[in]pConnectionThe network connection to destroy, defined by the network stack.
Returns
Any IotNetworkError_t, as defined by the network stack.
Attention
No function should be called on the network connection after calling this function. This function must be safe to call from a receive callback.
IotNetworkError_t
IotNetworkError_t
Return codes for network functions.
Definition: iot_network.h:43