Boost logo

Boost Users :

Subject: Re: [Boost-users] boost asio http server vs indy httpserver component
From: Igor R (boost.lists_at_[hidden])
Date: 2012-05-20 07:01:47


> I have an application writen in Borland C++ Builder, using Indy HTTPServer
> component to handle each connection in blocking mode, each connection starts
> a new thread,
> if I want to do the same using boost what is the appropriate way to do that?

First of all, asio doesn't support app-level protocols - if you need
such facilities out of the box, you can take a look at cpp-netlib,
which is built on top of asio:
http://cpp-netlib.github.com/latest/index.html
On the other hand, if you want to base your project directly on asio,
take a look at asio examples:
http://www.boost.org/doc/libs/1_49_0/doc/html/boost_asio/examples.html
As you can see, there are 4 http server examples, but none of them
implements the approach you mention in your question, because such it
would be much more error-prone and would somewhat defeat the whole
purpose of the asio design.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net