eth32_close

int eth32_close(eth32 handle);

Summary

This function closes the connection to the ETH32 device and cleans up all of the resources within the API that were used for the connection. After this function returns, the handle should be considered invalid and should not be used again.

Parameters

  • handle - The value returned by the eth32_open function.

Return Value

This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.

Remarks

You should be careful to always call this function when you are finished using the device. The device has a limited number of connections it can support and if you do not call eth32_close and your application continues executing, you will continue using one of those connections. If you fail to call eth32_close, any connections will be automatically closed by the operating system when your application terminates.

See Also

eth32_open, eth32_verify_connection