#include        <stdio.h>
#include        <netdb.h>

#define LU(var) snprintf(buf, sizeof(buf), "%d.dldns.net.sol.net", index++); if (! ((h = gethostbyname(buf)))) exit(1); memcpy(&(var), h->h_addr, sizeof((var)));

int main()
{
        char buf[1024];
        struct hostent *h;
        unsigned int index = 0, n, size, data;

        LU(size);
        size = ntohl(size);

        printf("Downloading %d bytes\n", ntohl(size));
        for (n = 0; n < size; n++) {
                LU(data);
                write(fileno(stdout), (void *)&data, sizeof(data));
        }
}

