'The parameter proxy_type must be set to one of socks.PROXY_TYPE_XXX
constants. For example:
p = ProxyInfo(proxy_type=socks.PROXY_TYPE_HTTP,
proxy_host=\'localhost\', proxy_port=8000)'

def __init__(self, proxy_type, proxy_host, proxy_port, proxy_rdns=True, proxy_user=None, proxy_pass=None):

    self.proxy_type = proxy_type
    self.proxy_host = proxy_host
    self.proxy_port = proxy_port
    self.proxy_rdns = proxy_rdns
    self.proxy_user = proxy_user
    self.proxy_pass = proxy_pass
