Detach a previously attached connection
#include <ha/cover.h> int ha_attach(int coid)
libha
The ha_detach() function detaches a connection from the HA library. This effectively makes the connection non HA-aware. After the detach operation is complete, no more recovery will be performed for any message operations on this connection.
The connection referred to by coid must be a connection previously attached to using ha_attach(). Normally, you detach connections just prior to closing them. The functions ha_close(), ha_ConnectDetach|_r(), and ha_fclose() perform the required ha_detach() operation before closing the connection.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
ha_attach(), ha_close(), ha_ConnectDetach(), ha_fclose()