![]() |
|
![]() |
|
cURL ![]() ![]() ![]() curlpp mailing list Archives
[cURLpp] WriteFunctionFunctor still can not use a member pointer
From: sirtoozee <sirtoozee_at_gmail.com>
Date: Fri, 23 Nov 2007 10:15:42 +0800
Hi curlpp geek:
I read the source code of the example05.cpp(Function functor for
So it acts like a class member use a static function pointer only
static size_t
stream->append(ptr, size * nmemb);
return size * nmemb;
void *
return NULL;
When I even know the callback functor can not use a member function
size_t
this->m_pBuffer = (char*) this->Realloc(this->m_pBuffer,
if (this->m_pBuffer == NULL) {
memcpy(&(this->m_pBuffer[this->m_Size]), ptr, realsize);
return realsize;
void Callback::print()
std::cout << "Content: " << std::endl << this->m_pBuffer << std::endl;
And yes '((Callback*)this)->Callback::WriteMemoryCallback' cannot be
So the C++ wrapper of curl still can not make callback functor to use
sirtoozee
-- An individual human existence should be like a river - small at first, narrowly contained within its banks, and rushing passionately past boulders and over waterfalls. Gradually the river grows wider, the banks recede, the waters flow more quietly, and in the end, without any visible break, they become merged in the sea, and painlessly lose their individual being. _______________________________________________ cURLpp mailing list cURLpp_at_rrette.com http://www.rrette.com/mailman/listinfo/curlppReceived on 2007-11-23 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info