[data, status] = getsockopt (s, level, optname) ¶Get a socket option value from a socket.
Returns the value of level optname from the socket s.
Data type depends on the option used. status returns as 0 if no error.
See the getsockopt man pages for further details.
Package: sockets