Get list of available socket options : Socket Option « Network « Python






Get list of available socket options

Get list of available socket options
import socket
solist = [x for x in dir(socket) if x.startswith('SO_')]
solist.sort()
for x in solist:
    print x

           
       








Related examples in the same category