Important: The information in this document is obsolete and should not be used for new development.
The Keepalive Structure
The keepalive structure specifies the value of theOPT_KEEPALIVE
option, described in "Generic Options".The keepalive structure is defined by the
t_kpalive
data type.
struct t_kpalive { long kp_onoff; long kp_timeout; }; typedef struct t_keepalive t_keepalive;
Field Description
kp_onoff
- A constant specifying whether the option is turned on (
T_ON
) or off (T_OFF
).kp_timeout
- A positive integer specifying how many minutes Open Transport should maintain a connection in the absence of traffic.