
On 7/25/08, Brian Davis <bitminer@gmail.com> wrote:
On Fri, Jul 25, 2008 at 12:31 AM, Gregory Dai <gregory.dai@gmail.com> wrote:
Anyone tried building a web service client based on existing boost library components such as asio? Like to share, or brag :-) about your experience?
The answer here for me is no, but... I did look at the architecture coupled with the new boost::iostreams library so here is what I basically asked at BostCon 2008 during the ASIO presentation.
Would it make sense to use ASIO and boost iostreams (filters) to make a communications foundations layer which would provide the following:
Client->boost::iostream::HTTP->boost::iostream::SSL->ASIO->~network~->ASIO->boost::iostream:SSL::boost::iostream::HTTP->Server
iostreams library has the concept of filters which could provide transformations on data. I also looked into creating stream operators like std::endl (an example) to preform actions on the stream. These are just my thoughts for what they are worth.
Brian
I think it would be a great idea. But would you write this communications foundations layer ? -- Alp Mestan --- http://blog.mestan.fr/ --- http://alp.developpez.com/ --- In charge of the Qt, Algorithms and Artificial Intelligence sections on Developpez