SocketSetOption is available since version 1.0.
Prototype:
number SocketSetOption(number socket, number level, number option, number optionValue)
Parameters
socket
[in] a valid and socket descriptor, as returned by
SocketCreate
level
[in] Level at which the option is defined; the supported levels include
option
[in] Level at which the option is defined; the supported levels include SOL_SOCKET and IPPROTO_TCP
optionValue
[in] the value for the specified option
Description:
Sets a socket option. Is based on the setsockopt system function.
Return value:
Returns 0 if succeeded, or non-zero if failed.