#pragma once #if defined(ASIO_STANDALONE) //MSVC : define environment path 'ASIO_STANDALONE_INCLUDE', e.g. 'E:\bdlibs\asio-1.10.6\include' #include #ifdef CINATRA_ENABLE_SSL #include #endif #include #include namespace boost { namespace asio { using namespace ::asio; } namespace system { using ::std::error_code; } } #else #include #ifdef CINATRA_ENABLE_SSL #include #endif #include using namespace boost; using tcp_socket = boost::asio::ip::tcp::socket; #ifdef CINATRA_ENABLE_SSL using ssl_socket = boost::asio::ssl::stream; #endif #endif