Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_detach.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_detach.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_detach.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_detach.html on line 8

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

See also:

ha_attach(), ha_close(), ha_ConnectDetach(), ha_fclose()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_detach.html on line 124

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_detach.html on line 124