HP-UX SNAplus2 R7 APPC Programmer's Guide

TP Server Verbs
REGISTER_TP_SERVER
5.1.1 VCB Structure: REGISTER_TP_SERVER
The denition of the VCB structure for the REGISTER_TP_SERVER verb is as follows:
typedef struct register_tp_server
{
AP_UINT16 opcode;
unsigned char rsrvd1; /* Reserved */
unsigned char rsrvd2; /* Reserved */
AP_UINT16 primary_rc;
AP_UINT32 secondary_rc;
AP_UINT32 tps_id;
unsigned char tp_file_updates;
AP_NOTIFY_CB notify_cb;
} REGISTER_TP_SERVER;
typedef void (*AP_NOTIFY_CB) (
unsigned char reason,
unsigned char attach_id[8],
AP_CORR app_corr
);
typedef union ap_corr {
void * corr_p;
AP_UINT32 corr_l;
AP_INT32 corr_i;
} AP_CORR;
5.1.2 Supplied Parameters
The TP supplies the following parameters to APPC:
opcode
AP_REGISTER_TP_SERVER
tp_le_updates
Requests whether the application should be notied when the sna_tps TP conguration le is updated.
Possible values are:
AP_YES
The application requests callbacks to notify it that the sna_tps le has been changed.
AP_NO
The application does not require notication of changes to the sna_tps le.
notify_cb
The address of the notication callback function. APPC uses this function in conjunction with the value of
the app_corr parameter specied on the REGISTER_TP verb to notify a TP server that one of the following
has occurred:
A suitable Attach is available
The sna_tps TP conguration le has changed (if the application requested this notication by setting
the tp_le_updates parameter to AP_YES).
For more information on how the notication callback function is used, see Section 5.1.4, Usage Notes.
250