curl-library
Re: CURLOPT_DEBUGFUNCTION problem
From: Anton Fedorov <datacompboy_at_call2ru.com>
Date: Sat, 23 Feb 2008 18:27:23 +0600
Received on 2008-02-23
Date: Sat, 23 Feb 2008 18:27:23 +0600
Hello, Michael.
Your wrote 23 февраля 2008 г. 18:19:48:
MH> I want the debugfunction to be part of my
MH> communication-class. How can I
MH> do that?
MH> int Cmy_Communicator::my_trace(CURL *handle, curl_infotype type,
MH> unsigned char *data, size_t size, void *userp)
my_trace should be static function.
And do
curl_easy_setopt(curl_handle, CURLOPT_DEBUGDATA, this);
then, in my_trace do
((*Cmy_Communicator)userp)->my_trace_class(CURL *handle,
curl_infotype type, unsigned char *data, size_t size);
-- Best regards, Anton Call2Ru service datacompboy_at_call2ru.com
- application/pgp-signature attachment: stored