Re: [libmicrohttpd] MHD_create_post_processor: recommended buffer size for large posts

2017-03-31 Thread silvioprog
Oops, wrong link at Google search, I forgot SVN was deprecated. ^^' (it should be disabled) Basically I want to offer general value for best performance on Android (smartphones) and Linux/Windows (servers), so after your explanation I'm going to use it: #if defined(__ANDROID__) # define BF_HTTPSR

Re: [libmicrohttpd] Using MHD_UpgradeResponseHandle without including internal.h

2017-03-31 Thread John Duncan
I was trying to pass custom non-global scoped data to my upgrade_cb for websockets (upgrade_cb is the name of the routine in test_upgrade.c). I noticed that the opaque MHD_UpgradeResponseHandle structure was passed as a pointer parameter to the callback, so I was trying to investigate its members

Re: [libmicrohttpd] Using MHD_UpgradeResponseHandle without including internal.h

2017-03-31 Thread Christian Grothoff
Hi John, You're expected to pass data via "cls", you have no influence on "extra_in". "extra_in" is there in case MHD "accidentally" read already more data than the HTTP header from the Web socket, thereby making it available to you (you are to treat it as if you read it from 'sock'). So in your

Re: [libmicrohttpd] Using MHD_UpgradeResponseHandle without including internal.h

2017-03-31 Thread John Duncan
Well, that's fantastic! Thanks man. ~JD On Fri, Mar 31, 2017 at 5:08 PM, Christian Grothoff wrote: > Hi John, > > You're expected to pass data via "cls", you have no influence on > "extra_in". "extra_in" is there in case MHD "accidentally" read already > more data than the HTTP header from th