[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] socket_context not set (libmicrohttpd-0.9.50)

From: Christian Grothoff
Subject: Re: [libmicrohttpd] socket_context not set (libmicrohttpd-0.9.50)
Date: Mon, 5 Jun 2017 18:03:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 06/05/2017 06:01 PM, Miguel Sancho wrote:
> Christian,
>> Eh, what is that "*" doing in the "if" line?
> reason is that in definition of the MHD_ConnectionInfo union, I see
> socket_context defined as "void**", maybe it should be just "void*"

It is indeed "void *" in more recent versions of MHD.

>> Also, what code do you use in the connection notification callback to
> set the socket_contest?
> MyContext *contextPtr = new MyContext();
> *socket_context = contextPtr;

Ok, that  looks correct.

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]