class TSoTcpLingerOpt |
Parameter struct for KSoTcpLinger socket option. The following combinations are possible:
iOnOff == 0: Close() call returns immediately, but TCP still tries to transmit the data remaining in its send buffers.
iOnOff == 1, iLinger == 0: Close() returns immediately, and the TCP sender discards all data in its send buffers. TCP RST is sent to the other end. Note: the TCP sender avoids the TIME_WAIT state.
iOnOff == 1, iLinger > 0: Close() call blocks until the data in TCP send buffers is succesfully transmitted and the connection is graciously terminated. If the sender cannot transmit all data before the linger time expires, the Close() call wakes up, but the stack continues towards terminating the connection as usual.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.