@CHIP-RTOS C Library V2.00 - TCP/IP API
setlinger
Set linger time on close (TCP only). int setlinger ( int sd, int seconds, int *error ); Parameters
sd
- Socket descriptor.
seconds
- Linger time in seconds, default: 60 sec,
0 means linger turned off.
error
- Output parameter: Failure
code, 0 on success.
Return Value
- 0 = success
Non-zero = Failure (see error
output parameter)
Comments
- This API function works only with TCP sockets.
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|