def read(fd, bufsize=None):
    if bufsize is None:
        # Read all.
        def reader():
            buf = []
            while True:
                data = yield read(fd, 1024)
                if not data:
                    break
                buf.append(data)
            yield ReturnEvent(''.join(buf))
        return DelegationEvent(reader())

    else:
        return ReadEvent(fd, bufsize)
Retrieve IP addresses for the provided domain.
dataset/ETHPy150Open beetbox/beets/beets/util/bluelet.py/read--crossover with--dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/libvirt_driver.py/LibvirtNodeDriver._get_ip_addresses_for_domain