SCANINTERVAL and TIMEMARK statements

Use the SCANINTERVAL parameter statement to define the interval at which Telnet checks connections for inbound TCP/IP activity. It is used in conjunction with the TIMEMARK parameter statement, which defines the elapsed time Telnet uses to determine whether a connection to the client is considered broken. During SCANINTERVAL processing, if the elapsed time since the last inbound activity is greater than the TIMEMARK value, the connection is considered possibly broken and a TIMEMARK request is sent to the client. At the next interval, if neither a TIMEMARK request nor data is received, the connection is considered broken. Telnet drops the connection.

SCANINTERVAL and TIMEMARK can be coded in TELNETGLOBALS, TELNETPARMS, or PARMSGROUP. See Rules for Telnet parameter statements and security parameters for more information about the hierarchy of parameter values.

If for any reason the TIMEMARK cannot be sent immediately on five consecutive tries and no data or TIMEMARK response is received, the connection is dropped. When TIMEMARK cannot be sent immediately, Telnet tries again at the next SCANINTERVAL time. If the SCANINTERVAL is greater than the TIMEMARK value, it is reset to the TIMEMARK value.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-+---------------------+--+-----------------+----------------><
   +-SCANINTERVAL 1800---+  +-TIMEMARK 10,800-+   
   '-SCANINTERVAL --sec1-'  '-TIMEMARK --sec2-'   

Parameters

1800
Telnet is initialized with a SCANINTERVAL value of 1800 seconds.
sec1
Sets the SCANINTERVAL time to a specified number of seconds. This value is in the range 1 - 99␠999␠999. A value of 0 is not valid.
10,800
Telnet is initialized with a TIMEMARK value of 10␠800 seconds.
sec2
Sets the TIMEMARK time to a specified number of seconds. This value is in the range 1 - 99␠999␠999. A value of 0 is not valid.