'Activate the socks5 session that has been negotiated.'

def activate(self, proxy, sid, target, ifrom=None, block=True, timeout=None, callback=None):

    iq = self.xmpp.Iq(sto=proxy, stype='set', sfrom=ifrom)
    iq['socks']['sid'] = sid
    iq['socks']['activate'] = target
    iq.send(block=block, timeout=timeout, callback=callback)
