void* HTTPBL::httpblLoop(void* ptr) { HTTPBL *h = (HTTPBL*)ptr; Redis *r = ntop->getRedis(); while(!ntop->getGlobals()->isShutdown()) { char numeric_ip[64]; int rc = r->popHostToHTTPBL(numeric_ip, sizeof(numeric_ip)); if(rc == 0) { h->queryHTTPBL(numeric_ip); } else sleep(1); } return(NULL); }