HP-UX SNAplus2 R7 NOF Programmer's Guide
NOF API Verbs
DEFINE_TN3270_DEFAULTS
3.46 DEFINE_TN3270_DEFAULTS
DEFINE_TN3270_DEFAULTS defines TN3270 parameters used on all client sessions.
3.46.1 VCB Structure
typedef struct define_tn3270_defaults
{
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 */
TN3270_DEFAULTS_DEF_DATA def_data; /* TN3270 defaults */
} DEFINE_TN3270_DEFAULTS;
typedef struct tn3270_defaults_def_data
{
unsigned char force_responses; /* force printer responses? */
unsigned char keepalive_method; /* method for sending keep-alives */
AP_UINT32 keepalive_interval; /* interval between keep-alives */
unsigned char reserv2[32]; /* reserved */
} TN3270_DEFAULTS_DEF_DATA;
3.46.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_DEFINE_TN3270_DEFAULTS
def_data.force_responses
Controls client responses on printer sessions. Possible values are:
AP_YES
Always request definite responses from the client printer sessions. Some 3270 emulators are unable to
print large jobs if definite responses are not requested. If necessary, set force_responses to AP_YES to
avoid problems.
AP_NO
Request responses matching SNA traffic.
def_data.keepalive_method
Method for sending keep-alive messages. Keep-alive messages are messages sent to TN3270 clients when
there is no other activity on the connection, to keep the TCP/IP connections to the clients active; this ensures
that failed connections and clients can be detected. If there is no traffic at all on a TCP/IP connection, failure
of the connection or of the client may never be detected, which wastes TN server resources and prevents LUs
from being used for other sessions.
Possible values are:
AP_NONE
Do not send keep-alive messages.
261