Re: [libmicrohttpd] External logging

2018-11-29 Thread Christian Grothoff
There is one tiny bug. You are dereferencing 'arg', but never passed its address. So use: MHD_OPTION_EXTERNAL_LOGGER, MHD_external_logger, (void*) &MHD_logger, and it should work. On 11/29/18 9:25 AM, sreejit...@dell.com wrote: > Hi MHD team/Christian, > >   > > I implemented MHD in a wind

[libmicrohttpd] External logging

2018-11-29 Thread Sreejith.D
Hi MHD team/Christian, I implemented MHD in a windows application via MSYS. To detect some intermittent connection-break issues, I implemented external logging. It looks straightforward and that is why I doubt if it is the right way to do, too... messages are enabled (not compiled with -disable

Re: [libmicrohttpd] External logging

2018-11-29 Thread Sreejith.D
Oops 😊 Thank you for the prompt reply to a naïve bug. But good to know that the logging would work. -Sreejith. -Original Message- From: Christian Grothoff Sent: Thursday, November 29, 2018 3:56 PM To: D, Sreejith; libmicrohttpd@gnu.org Cc: gnomicb...@gmail.com Subject: Re: External log

Re: [libmicrohttpd] How to send Chunked messages

2018-11-29 Thread silvioprog
Hi Santos and Christian. Santos, the Christian's answer was complete and clarified me a lot too. ☺ Christian, it seems sendfile() is not available in mingw and in the Google's NDK (Android), but my library must work at least on Windows, Linux, Raspbian and Android, so I've used the fopen() in thi