def __init__(self, host, port, jid, sid, sender_jid, on_success, on_failure): ''' try to establish and auth to proxy at (host, port) call on_success, or on_failure according to the result''' self.host = host self.port = port self.jid = jid self.on_success = on_success self.on_failure = on_failure self._sock = None self.file_props = {'is_a_proxy': True, 'proxy_sender': sender_jid, 'proxy_receiver': '[email protected]/test2'} Socks5.__init__(self, gajim.idlequeue, host, port, None, None, None) self.sid = sid
def __init__(self, host, port, jid, sid, sender_jid, on_success, on_failure): ''' try to establish and auth to proxy at (host, port) call on_success, or on_failure according to the result''' self.host = host self.port = port self.jid = jid self.on_success = on_success self.on_failure = on_failure self._sock = None self.file_props = { 'is_a_proxy': True, 'proxy_sender': sender_jid, 'proxy_receiver': '[email protected]/test2' } Socks5.__init__(self, gajim.idlequeue, host, port, None, None, None) self.sid = sid
def __init__(self, host, port, jid, sid, sender_jid, on_success, on_failure): """ Try to establish and auth to proxy at (host, port) Call on_success, or on_failure according to the result. """ self.host = host self.port = port self.jid = jid self.on_success = on_success self.on_failure = on_failure self._sock = None self.file_props = FilesProp.getNewFileProp(jid, sid) self.file_props.is_a_proxy = True self.file_props.proxy_sender = sender_jid self.file_props.proxy_receiver = "[email protected]/test2" Socks5.__init__(self, gajim.idlequeue, host, port, None, None, None) self.sid = sid