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_ConnectDetach.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_ConnectDetach.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_ConnectDetach.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_ConnectDetach.html on line 8

ha_ConnectDetach(), ha_ConnectDetach_r()

Detach an attached file descriptor, then close the connection

Synopsis:

#include <ha/neutrino.h>
    
int ha_ConnectDetach(int coid);

int ha_ConnectDetach_r(int coid);

Library:

libha

Description:

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.

Returns:

The only difference between these functions is the way they indicate errors:

ha_ConnectDetach()
If an error occurs, -1 is returned and errno is set. Any other value returned indicates success.
ha_ConnectDetach_r()
EOK is returned on success. This function does NOT set errno. If an error occurs, any value from the errors returned by either the underlying ConnectDetach() call or the ha_detach() call may be returned.

Errors:

The ha_ConnectDetach|_r() call returns errors as returned by either the underlying ConnectDetach() call or the ha_detach() call.

Classification:

QNX Neutrino

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

See also:

ha_attach(), ha_ConnectAttach(), ha_detach()

In the Library Reference: ConnectDetach()


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_ConnectDetach.html on line 129

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_ConnectDetach.html on line 129