The Keepalive Structure
The keepalive structure specifies the value of theOPT_KEEPALIVEoption, described in "Generic Options" (page 5-27).The keepalive structure is defined by the
t_kpalivedata type.
struct t_kpalive { long kp_onoff; /* option on/off */ long kp_timeout; /* timeout in minutes */ };
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 for how many minutes
Open Transport can maintain a connection in the absence of traffic.