[Top][All Lists]

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

Re: [libmicrohttpd] Comet with libmicrohttpd

From: Christian Grothoff
Subject: Re: [libmicrohttpd] Comet with libmicrohttpd
Date: Tue, 14 Oct 2008 12:13:32 -0600
User-agent: KMail/1.9.9

Wouldn't using another API call to construct a response work?  Something like:

MHD_create_response_from_callback(-1, ...);

Note that passing "-1" means that there is no finite size for the response, so 
you can continue (at whatever rate is convenient for you) to send data to the 
browser (note that depending on your select/threading mode you may have to 
either block in the callback or during your external select loop).

I hope this helps!


On Tuesday 14 October 2008 11:39:42 am Andreas Røsdal wrote:
> Hello!
> I'm wondering if it is possible to make libmicrohttpd support
> Comet, which is "long-held HTTP request allows a web server to
> push data to a browser".
> The current API doesn't seem to support it, for example reponses
> are queued using MHD_create_response_from_data.
> To make things slightly more complicated, the client has to access
> libmicrohttpd through a proxy as well.
> Here's more info about Comet:
> Here is the project which I'm using MHD for:
>   - Andreas
> _______________________________________________
> libmicrohttpd mailing list
> address@hidden

reply via email to

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