ICI Modules: net: getsockopt
Modules by name : by typeSynopsis
int = net.getsockopt(socket, string)Description
Returns the value of a socket option. The socket to be inspected is the first argument, the second argument names the option to be returned. The following strings are recognized and correspond to the similarly named C macros,
- "debug"
- "reuseaddr"
- "keepalive"
- "dontroute"
- "useloopback"
- "linger"
- "broadcast"
- "oobinline"
- "sndbuf"
- "rcvbuf"
- "type"
- "error"
- "nodelay"
The result is an integer, the option value.