'Get the network information of a proxy.'

def get_network_address(self, proxy, ifrom=None, block=True, timeout=None, callback=None):

    iq = self.xmpp.Iq(sto=proxy, stype='get', sfrom=ifrom)
    iq.enable('socks')
    return iq.send(block=block, timeout=timeout, callback=callback)
