SocketGetOption is available since version 1.0.
Prototype:
number SocketGetOption(number socket, number level, number option, var 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 SOL_SOCKET and IPPROTO_TCP
option
[in] Socket option for which the value is to be set.
optionValue
[out] the retrieved value for the specified option
Description:
Gets a socket option. Is based on the getsockopt system function.
Return value:
Returns 0 if succeeded, or non-zero if failed.