cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Progress

From: Bob Schader <bobs_at_product-des.com>
Date: Wed, 21 Feb 2001 07:45:04 -0500

I would refer you at this point to Dan's response and
also the GTK example on the web site. I also am not
using C++, just C and Java.

Bob

-----Original Message-----
From: curl-library-admin_at_lists.sourceforge.net
[mailto:curl-library-admin_at_lists.sourceforge.net]On Behalf Of
pit_at_paradise.net.nz
Sent: Tuesday, February 20, 2001 11:23 PM
To: curl-library_at_lists.sourceforge.net
Subject: Re: Progress

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

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