HP-UX SNAplus2 MS Programmer's Guide

Writing MS Applications
Description of the MS API Entry Points
Chapter 236
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
unsigned short ms_async(
unsigned long target_handle,
void * msvcb,
MS_CALLBACK (*comp_proc),
AP_CORR corr
);
typedef void (*MS_CALLBACK) (
unsigned long target_handle,
void * msvcb,
AP_CORR corr
);
typedef union ap_corr {
void * corr_p;
unsigned long corr_l;
int corr_i;
} AP_CORR;
For more information about the parameters in the MS_CALLBACK
structure, see “The Callback Routine Specified on the ms_async Entry
Point”.
Supplied Parameters
An application supplies the following parameters when it uses the
ms_async entry point:
target_handle
Identifier for the target SNAplus2 node. For the
REGISTER_*, UNREGISTER_*, and
DISCONNECT_MS_NODE verbs, the application
supplies the value that was returned on the
CONNECT_MS_NODE verb.
For all other verbs, this parameter is not used; set it to
0 (zero).
msvcb