www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - 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.   It was necessary when a listening socket was closed and will be opened and bound to the same port as it was bound to before.

Since @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.


This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document