Detach an attached file descriptor, then close the connection
#include <ha/neutrino.h> int ha_ConnectDetach(int coid); int ha_ConnectDetach_r(int coid);
libha
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.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
ha_attach(), ha_ConnectAttach(), ha_detach()
In the Library Reference: ConnectDetach()