Get list of available socket options : Socket Option « Network « Python
- Python
- Network
- Socket Option
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