Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 25 - Option Management Reference / Constants and Data Types


The Keepalive Structure

The keepalive structure specifies the value of the OPT_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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998