Detach an attached HA file descriptor, then close it
#include <ha/unistd.h> int ha_close(int fd);
The ha_close() convenience function detaches a connection that was previously attached using ha_attach(), and then closes the connection.
The fd is the file descriptor originally obtained from ha_open().
The ha_close() function returns errors as returned by either the underlying close() call or the ha_detach() call.
ha_attach(), ha_ConnectDetach(), ha_detach(), ha_open()
In the Library Reference: close()