On Sat, Apr 9, 2016 at 11:39 AM, Christian Grothoff
wrote:
> Dear all,
>
> I'm happy to announce the release of libmicrohttpd 0.9.49.
[...]
Oh, I didn't see the Windows binaries available for this release,
doing navigating at MHD site now I found the
"libmicrohttpd-0.9.49-w32-bin.zip" entry. :-
Hello,
Thanks a lot.
For me, 0.9.49 does not work - it never enters the
"AccessHandlerCallback()" handler. I have attached
a small testcase.
Steps to reproduce:
g++ -o testmhd test.cpp -I/tmp/libmicrohttpd-0.9.49/src/include/
-L/tmp/libmicrohttpd-0.9.49/src/microhttpd/.libs/ -lmicrohttpd
LD_LIBRA
It worked fine here on Windows. I don't know how C++ declares pointers, but
looking at this line:
struct MHD_Daemon *daemon = MHD_start_daemon( daemon_flags, 0,
http_AcceptPolicyCallback, NULL,
http_AccessHandlerCallback, NULL, ...
You should use something like this:
struct MHD_Daemon
That is the same. The name of a function decays into a pointer to that
function in just the same way
as the name of an array decays into a pointer to the first element. The only
exception is if the function
name is the argument of the address-of operator. So “AcceptPolicyCallback“ and
“&Accep
I'm running on Linux and compile my application with g++. 0.9.49 works for
me (on both x86 and an ARM processor, for what that's worth). I didn't
change a line of code to go from 0.9.43 to 0.9.49. I do not use an 'accept
policy callback', but naturally I need the 'access handler' callback and it
On 12.04.2016 15:03, silvioprog wrote:
> . What file is recommended to use on Windows 7 and 10? I found different
> files in the package categorized by folders, eg: MinGW, VS2013
> and VS2015; shared and shared-xp; Release-dll and Release-dll-xp; Is
> there any README file explaining about this c
Ah, the cause is that you create the listen socket (which is OK), but
you don't set it to be non-blocking. The result looks like this:
pid 5676] <... epoll_wait resumed> {{EPOLLIN, {u32=39549584,
u64=39549584}}}, 128, -1) = 1
[pid 5676] accept4(4, {sa_family=AF_INET, sin_port=htons(35076),
sin
Hello
On 12.04.2016 17:10, Markus Doppelbauer wrote:
> Thanks a lot.
> For me, 0.9.49 does not work - it never enters the
> "AccessHandlerCallback()" handler. I have attached
> a small testcase.
>
> Steps to reproduce:
> g++ -o testmhd test.cpp -I/tmp/libmicrohttpd-0.9.49/src/include/
> -L/tmp/li
Hi Christian,
You are right - switching to non-blocking fixes this problem. Thanks
for
your help. It worked with 0.9.48 - but had some flaws (now I know why).
Please close this issue - this was my fault.
Markus
Am Dienstag, den 12.04.2016, 21:50 +0200 schrieb Christian Grothoff:
> Ah, the cause is