|
Boost Users : |
Subject: Re: [Boost-users] Boost::asio, complexity
From: Igor R (boost.lists_at_[hidden])
Date: 2011-03-06 14:59:46
> However, I notice that even though Asio works wonderfully for larger,
> asynchronous projects, it gets in the way while doing smaller, more routine tasks.
Take a look at these examples:
http://www.boost.org/doc/libs/1_46_0/doc/html/boost_asio/example/iostreams/daytime_server.cpp
http://www.boost.org/doc/libs/1_46_0/doc/html/boost_asio/example/iostreams/daytime_client.cpp
> And, asio also is not a miniscule library and when creating binaries,
> one is often including things he/she wouldn't need.
What exactly? IMHO, asio is pretty modular, so you include and compile
just what you want. Eg, if you don't include the ssl part or timers -
you don't have them in your binary.
> So, I wrote a small library (<500 LOC) that basically lets you pretend that a socket is a stream
> and you can use it like std::cout and std::cin.
Could you please elaborate a bit on how it's different from the ASIO
tcp::iostream?
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