Important: The information in this document is obsolete and should not be used for new development.
The Linger Structure
The linger structure specifies the value of theXTI_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 toT_UNSPEC
.