libmicrohttpd
[Top][All Lists]
Advanced

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

[libmicrohttpd] Query on async response using microhttpd


From: Geetha Shanmugam
Subject: [libmicrohttpd] Query on async response using microhttpd
Date: Fri, 29 Jul 2016 22:58:46 +0530

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]