HP-UX SNAplus2 R7 NOF Programmer's Guide
NOF API Verbs
QUERY_TN3270_ACCESS_DEF
unsigned char *buf_ptr; /* pointer to buffer */
AP_UINT32 buf_size; /* buffer size */
AP_UINT32 total_buf_size; /* total buffer size required */
AP_UINT16 num_entries; /* number of entries */
AP_UINT16 total_num_entries; /* total number of entries */
unsigned char list_options; /* listing options */
unsigned char reserv3; /* reserved */
AP_UINT16 default_record; /* start with DEFAULT record? */
unsigned char client_address[68]; /* address of TN3270 user */
AP_UINT16 port_number; /* TCP/IP port to access server */
AP_UINT32 num_init_sessions; /* number of sessions for first */
/* user when starting in middle */
AP_UINT32 num_last_sessions; /* number of sessions on last */
/* detail overlay if last user */
/* is incomplete */
unsigned char last_user_incomplete; /* set to AP_YES if session */
/* data for last user incomplete*/
unsigned char reserv4[11]; /* Reserved */
} QUERY_TN3270_ACCESS_DEF;
typedef struct tn3270_access_summary
{
AP_UINT16 overlay_size; /* overlay size */
AP_UINT16 default_record; /* is this the DEFAULT record? */
unsigned char client_address[68]; /* address of TN3270 user */
AP_UINT16 address_format; /* Format of client address */
unsigned char reserv3[6]; /* Reserved */
} TN3270_ACCESS_SUMMARY;
typedef struct tn3270_access_detail
{
AP_UINT16 overlay_size; /* overlay size */
AP_UINT16 sub_overlay_offset; /* offset to first sess struct*/
AP_UINT16 default_record; /* is this the DEFAULT record?*/
unsigned char client_address[68]; /* address of TN3270 user */
AP_UINT32 num_filtered_sessions;/* num sess returned for user */
unsigned char reserv3[4]; /* Reserved */
TN3270_ACCESS_DEF_DATA def_data; /* user definition */
} TN3270_ACCESS_DETAIL;
typedef struct tn3270_access_def_data
{
unsigned char description[32]; /* Description - null terminated */
unsigned char reserv1[16]; /* reserved */
AP_UINT16 address_format; /* Format of client address */
AP_UINT32 num_sessions; /* Number of sessions being added */
unsigned char reserv3[64]; /* reserved */
} TN3270_ACCESS_DEF_DATA;
For each session, up to the number specified by the num_sessions parameter, the following structure is included at
the end of the
def_data structure:
typedef struct tn3270_session_def_data
{
AP_UINT16 sub_overlay_size; /* reserved */
unsigned char description[32]; /* Session description */
unsigned char tn3270_support; /* Level of TN3270 support */
unsigned char allow_specific_lu; /* Allow access to specific LUs */
669