OGRESSDATA, this);
curl_easy_setopt(_curl, CURLOPT_NOSIGNAL, 1L);
curl_easy_setopt(_curl, CURLOPT_LOW_SPEED_LIMIT, 1L);
curl_easy_setopt(_curl, CURLOPT_LOW_SPEED_TIME, 5L);
pthread_mutex_lock(&foo_mutex);
threadCnt ++;
pthread_mutex_unlock(&foo_mutex);
int rc = pthread_create (&pNode->_tid, NULL, workThread,pNode);
}
if (bError)
{
fclose(fp);
return false;
}
while (threadCnt >0)
{
Sleep(1000);
}
fclose(fp);
printf("download succed......\n");
return true;
}
int _tmain(int argc, _TCHAR* argv[])
{
downLoad(10, "http://ardownload.adobe.com/pub/adobe/reader/win/11.x/11.0.01/en_US/AdbeRdr11001_en_US.exe", "./", "AdbeRdr11001_en_US.exe");
getchar();
return 0;
}