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