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

ha_ReConnectAttach()

Reopen a connection while performing recovery

Synopsis:

#include <ha/neutrino.h>
    
int ha_ReConnectAttach(int oldcoid,
                       _Uint32t nd, 
                       pid_t pid,
                       int chid,
                       unsigned index,
                       unsigned flags);

Library:

libha

Description:

You can use the ha_ReConnectAttach() convenience function to reopen a connection while in the recovery phase. The oldcoid argument refers to the connection that has failed. The ha_ReConnectAttach() function closes the previous connection and opens a new connection using the parameters specified by calling ConnectAttach().

The ha_ReConnectAttach() function also verifies that the new connection ID returned is the same as the oldcoid (as required by the HA library mechanism).

Returns:

A new connection ID or -1 if an error occurred (errno is set).

Errors:

The ha_ReConnectAttach() call returns errors as returned by the underlying ConnectAttach() call.

Classification:

QNX Neutrino

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

See also:

ha_attach(), ha_close(), Connect_Attach(), Connect_Detach(), ha_detach(), ha_open()

In the Library Reference: ConnectAttach()


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_ReConnectAttach.html on line 118

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_ReConnectAttach.html on line 118