[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] regarding http webserver using libmicrohttpd
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] regarding http webserver using libmicrohttpd |
Date: |
Wed, 29 Jun 2016 16:49:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 |
On 06/29/2016 07:56 AM, Suman.Patro-TRN wrote:
> Hello,
>
> I would like to use libmicrohttpd for making an http
> webserver for real time data serving.
>
> *Use case* is as follows: I would like to compare and contrast
> websockets and traditional http for real time data monitoring. I have
> developed a webserver using websockets and would like to develop a
> similar model using any *ONE *of the tradtional techniques as http
> polling, long polling, streaming, AJAX, COMET, etc. Does the library
> support any of the http techniques?
You should be able to implement the server side of these using
MHD_create_response_from_callback() using a 'size' of MHD_SIZE_UNKNOWN
and MHD_suspend/resume_connection() depending on your threading model.
> Does the library have any webclient
> examples in javascript?
Nope, we don't have anything really for the client-side. MHD is just
server-side.
> *Requirements are: *for windows 64 bit and visual studio solution 2012.
That should make no difference (says the non-W32 dev ;-)).
> *Additional concern:* Does the library support any publish -subscribe
> mechanism ? If yes then how? else what could be the procedure to go about?
I guess AJAX/COMET/long polling can be viewed as publish-subscribe
mechanisms, and they are all exactly what you get if you return a
response in increments using the functions I mentioned above.
Happy hacking!
Christian
0xE29FC3CC.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature