cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Progress

From: <pit_at_paradise.net.nz>
Date: Wed, 21 Feb 2001 04:23:15 GMT

Hi.

The transfering was wolrking fine until i put
them in to thread.

I's my first time to use threading with
Boralnd C++. So i guess i messed up at some where.

For instance i don't know how to implement write_data
function which is used for CURLOPT_WRITEFUNCTION.

At the moment i put is as following

//----------------------------------------------------------------
extern size_t write_data(void *ptr, size_t size, size_t nmemb, FILE
*stream);

//----------------------------------------------------------------
void __fastcall TTransferThread::Execute()
{
  ...
  curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
  ...
}

I also tried to put the functions as member functions
of the thread class. But it didn't work either.

I know that i shouldn't put this kind of topic in here but
i don't know any where else to ask.

Help!!

> I've only been using it for PUT's so far.
> Time to start adding debug statements
> or something? Does that transfer actually
> take place?

_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-02-21