Zen API | Contents | Reference | Previous | Up | Next

zSocket_SetLingerTime
zSocket functions
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.

Remarks

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.
Contents | Reference