4 #include <boost/version.hpp>
6 #if BOOST_VERSION <= 103500
7 #include <boost/thread.hpp>
8 #include <boost/thread/mutex.hpp>
9 #include <boost/bind.hpp>
11 #include <asio/buffer.hpp>
12 //typedef boost::condition condition_variable ;
13 //typedef boost::detail::thread::scoped_lock<boost::mutex> scoped_lock;
15 using asio::error_code;
16 using asio::buffers_begin;
17 namespace syserr=asio;
19 #if BOOST_VERSION < 104000
20 #include <boost/asio.hpp>
21 #include <boost/thread/mutex.hpp>
22 #include <boost/bind.hpp>
23 using boost::asio::ip::tcp;
24 using boost::system::error_code;
25 using boost::system::system_error;
26 namespace syserr=boost::system;
28 #include <boost/asio.hpp>
29 #include <boost/thread/mutex.hpp>
30 using boost::asio::ip::tcp;
31 using boost::system::error_code;
32 using boost::system::system_error;
33 namespace syserr=boost::system;