libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] Query on async response using microhttpd


From: Geetha Shanmugam
Subject: Re: [libmicrohttpd] Query on async response using microhttpd
Date: Mon, 1 Aug 2016 18:51:30 +0530

Thanks very much for the response, Andreas Wehrmann. It helps.

~Geetha


On Fri, Jul 29, 2016 at 10:58 PM, Geetha Shanmugam <address@hidden> wrote:

Hi,

We are trying to use libmircohttpd in the following scenario.

 

Process P1 start MHD daemon in the external select mode.

It has to communicate to another process say P2 to send out the response.

The communication between P1 and P2 are via sockets (already tested and working model)

P1 should be able to receive and process multiple request without blocking.

The response should be sent asynchronously, not from the access handler callback function.

 

Is there an example that I can refer to understand how this can be done?

 

From reading thru the archive and manual, i understand that we can use the following APIs

1. MHD_suspend connection() can be called from access handler callback function, so the daemon can process the other incoming request, when the first one is being processed.

2. MHD_resume_connection() to send out the response once it is ready.

3. MHD_create_response_from_callback() - with a content reader callback and content reader free callback.

But unable to get the complete flow as how this can be done.

 

Thanks,

Geetha



reply via email to

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