HP-UX SNAplus2 NOF Programmer's Guide

Writing NOF Applications
Description of the NOF API Entry Points
Chapter 292
processing at a later time. In some cases, verb processing is complete
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.