boost asio http server vs indy httpserver component
Hi, 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? appreciate any help. Christer
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.
participants (2)
-
Christer Borgqvist
-
Igor R