ha_detach()

Detach a previously attached connection

Synopsis:

#include <ha/cover.h>

int ha_attach(int coid)

Library:

libha

Description:

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.

Returns:

0
Success
-1
An error occurred (errno is set).

Errors:

EBADF
There's no connection coid that's currently attached.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes