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
