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 Linger Structure

The linger structure specifies the value of the XTI_LINGER option, described in "XTI-Level Options".

The linger structure is defined by the t_linger data type.

struct t_linger 
{
long l_onoff;  
long l_linger; 
};
typedef struct t_linger t_linger;
Field Description
l_onoff
A constant specifying whether the option is turned on (T_ON) or off (T_OFF).
l_linger
An integer specifying the linger time, the amount of time in seconds that Open Transport should wait to allow data in an endpoint's internal buffer to be sent before the OTCloseProvider function closes the endpoint.

To request the default value for this option, set the l_linger field to T_UNSPEC.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998