def setdefaultproxy(proxytype=None, addr=None, port=None, rdns=True, username=None, password=None):
 global _defaultproxy
 _defaultproxy = (proxytype, addr, port, rdns, username, password)

def setdefaultproxy ( proxytype = None , addr = None , port = None , rdns = True , username = None , password = None ) : global _defaultproxy _defaultproxy = ( proxytype , addr , port , rdns , username , password )
setdefaultproxy sets a default proxy which all further socksocket objects will use .