Zen API
zSocket_SetLingerTime
C
zStatus zSocket_SetLingerTime(zSocket socket, z64u lingerTime);
Parameters
Parameters 
Description 
zSocket socket 
zSocket object. 
z64u lingerTime 
Linger time, in microseconds (0 for immediate closuse). 
Description

Specifies the duration that a TCP connection can remain open when the socket is closed in order to ensure that all outbound bytes are trasmitted to the receiver.

If the linger time is not set, then a default linger time will be selected by the underlying operating system.

File

zSocket.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.