开发者

How to create simple http server with boost capable of receiving data editing it and sharing?

开发者 https://www.devze.com 2023-01-25 11:53 出处:网络
So using any free opensource cross platform library like boost how to create a web service c开发者_运维百科apable of reciving a data stream (for example stream of mp3 frames) on one URL like http://ad

So using any free opensource cross platform library like boost how to create a web service c开发者_运维百科apable of reciving a data stream (for example stream of mp3 frames) on one URL like http://adress:port/service1/write/ and capable of sharing latest recived data to all consumers on http://adress:port/service1/read/ so of course mp3 is just an example of packed stream-able data - generally it can be anything packed. How to create such thing?

Generaly I am honesly triing to understend how to do such thing with C++ Network Library but it is just quite unclear to me.


The boost::asio documentation has four examples of complete HTTP server implementations, each with a slightly different threading architecture.

http://www.boost.org/doc/libs/1_43_0/doc/html/boost_asio/examples.html


You do not say what platform to use, but if Windows is an alternative, the Windows HTTP API easy to use and a great performer.

http://msdn.microsoft.com/en-us/library/aa364510(VS.85).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消