High Availability Monitors Version A.03.02 Release Notes
Writing NOF Applications
Description of the NOF API Entry Points
Chapter 294
when SNAplus2 returns control to the application, so SNAplus2 does not
use the application's callback routine.
Function Call
AP_UINT16 nof_async(
AP_UINT32 target_handle,
void * nofvcb,
NOF_CALLBACK (*comp_proc),
AP_CORR corr
);
typedef void (*NOF_CALLBACK) (
AP_UINT32 target_handle,
void * nofvcb,
AP_CORR corr
AP_UINT32 indic_length
);
typedef union ap_corr {
void * corr_p;
AP_UINT32 corr_l;
int corr_i;
} AP_CORR;
For more information about the parameters in the NOF_CALLBACK
structure, see “The Callback Routine Specified on the nof_async Entry
Point”.
Supplied Parameters
An application supplies the following parameters when it uses the
nof_async entry point:
target_handle
This parameter is supplied in one of the following
ways:
• For the following verbs, this parameter is not used;
set it to 0 (zero). If the verb completes successfully,
SNAplus2 returns the target handle as one of the
VCB parameters. The application then uses the
target handle for subsequent verbs.
— CONNECT_NODE (to access a running node, or
to access the node on a server where the
SNAplus2 software is started but the node is not