HP-UX SNAplus2 NOF Programmer's Guide

NOF API Verbs (ACTIVATE_SESSION to OPEN_FILE)
DEFINE_TN3270_ASSOCIATION
Chapter 3 387
DEFINE_TN3270_ASSOCIATION
DEFINE_TN3270_ASSOCIATION defines an association between a
display LU and a printer LU. This association allows a TN3270E client to
connect to the printer LU that is associated with a display LU without
knowing the name of the printer LU. The
DEFINE_TN3270_ASSOCIATION verb can be used to define a new
association or to overwrite an existing association for a particular
display LU.
VCB Structure
typedef struct define_tn3270_association
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
unsigned char display_lu_name[8]; /* Display LU name */
TN3270_ASSOCIATION_DEF_DATA def_data; /* association definition */
} DEFINE_TN3270_ASSOCIATION;
typedef struct tn3270_association_def_data
{
unsigned char description[32]; /* description */
unsigned char reserve0[16]; /* reserved */
unsigned char printer_lu_name[8]; /* Printer LU name */
unsigned char reserv2[8]; /* reserved */
} TN3270_ASSOCIATION_DEF_DATA;
Supplied Parameters
The application supplies the following parameters:
opcode
AP_DEFINE_TN3270_ASSOCIATION
display_lu_name