@CHIP-RTOS C Library V2.06 - TCP/IP API
setreuse
Set reuse option on a listening socket. int setreuse ( int sd, int *error ); Parameters
sd
- Socket descriptor.
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.
In earlier SC12 @CHIP-RTOS versions, this API was necessary when
a listening socket was closed and was to be re-opened and bound to
the same port as it was bound to before.
Since SC12 @CHIP-RTOS 071, every TCP socket is set by default as
reusable so use of this API function is no longer necessary.
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 |
-
V1.00 | V1.00 | V1.00 | V0.90 |
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|