HP-UX SNAplus2 NOF Programmer's Guide

NOF API Verbs (QUERY Verbs)
QUERY_TN3270_ACCESS_DEF
Chapter 4964
QUERY_TN3270_ACCESS_DEF
QUERY_TN3270_ACCESS_DEF returns information about TN3270
users on other computers that can use the TN server feature of
SNAplus2 to access a host for 3270 emulation. It can return either
summary or detailed information, about a single user or multiple users,
depending on the options used.
VCB Structure
typedef struct query_tn3270_access_def
{
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 *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*/
} QUERY_TN3270_ACCESS_DEF;
typedef struct tn3270_access_summary
{
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 */
} TN3270_ACCESS_SUMMARY;