Forgot to add this as well:
curl_easy_setopt(m_pCurlHandle, CURLOPT_PROGRESSDATA, this);
Mark Chandler wrote:
> Header:
> static int progress_cb(void *clientp, double dltotal, double dlnow,
> double ultotal, double ulnow);
> int progress_cbloc(double dltotal, double dlnow, double ultotal,
> double ulnow);
>
>
> when using it:
> curl_easy_setopt(m_pCurlHandle, CURLOPT_PROGRESSFUNCTION,
> WebControl::progress_cb);
>
>
>
> CPP:
> int WebControl::progress_cb(void *clientp, double dltotal, double dlnow,
> double ultotal, double ulnow)
> {
> WebControl* temp = static_cast<WebControl*>(clientp);
> if (temp)
> {
> return temp->progress_cbloc(dltotal, dlnow, ultotal, ulnow);
> }
> else
> {
> return 0;
> }
> }
>
> int WebControl::progress_cbloc(double dltotal, double dlnow, double
> ultotal, double ulnow)
> {
>
> }
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"curlpp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/curlpp?hl=en
-~----------~----~----~----~------~----~------~--~---