Detach an attached file descriptor, then close the connection
#include <ha/neutrino.h> int ha_ConnectDetach(int coid); int ha_ConnectDetach_r(int coid);
The ha_ConnectDetach() and ha_ConnectDetach_r() functions are identical except in the way they return errors. (For details, see the “Returns” section.)
The ha_ConnectDetach|_r() call detaches a connection (coid) that was previously attached using ha_attach(), and then closes the connection by calling the appropriate ConnectDetach|_r() call.
The only difference between these functions is the way they indicate errors:
The ha_ConnectDetach|_r() call returns errors as returned by either the underlying ConnectDetach() call or the ha_detach() call.
ha_attach(), ha_ConnectAttach(), ha_detach()
In the Library Reference: ConnectDetach()