tfTeldUserIdleTimeout
Table of Contents >> Application Reference >> Telnet Daemon
#include <trsocket.h> |
int tfTeldUserIdleTimeout | (ttUser32Bit timeout); |
Function Description
This function allows the user to set a Telnet connection's idle timeout to a value larger than the default (TM_TELD_MIN_IDLE_TIMEOUT). The idle timeout event causes Treck to ping the client with a TELNET AYT (Are-You-There) transmission. If the client does not respond, Treck will close the connection.
Parameters
- timeout
- The desired idle timeout, in seconds. This must be >= TM_TELD_MIN_IDLE_TIMEOUT.
Returns
- TM_ENOERROR
- Success
- TM_EINVAL
- One of the following:
- timeout is less than the TM_TELD_MIN_IDLE_TIMEOUT, or
- timeout is less than the current TCP maximum retransmission time, or
- timeout is greater than the allowed maximum of 4,294,967 seconds (~49.7 days).