resolvloop
if (pthread_create(&self, NULL, resolvloop, nhosts) != 0)
static void *resolvloop(void *);