Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kSocket_SetLingerTime | ( | kSocket | socket,
|  | k64u | lingerTime
| ) |  |

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

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

Parameters

  socket | Socket object.
  lingerTime | Linger time, in microseconds (0 for immediate closure).

Returns
  Operation status.