mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-29 16:40:48 +08:00
34 lines
729 B
C++
34 lines
729 B
C++
#pragma once
|
|
|
|
#if defined(ASIO_STANDALONE)
|
|
//MSVC : define environment path 'ASIO_STANDALONE_INCLUDE', e.g. 'E:\bdlibs\asio-1.10.6\include'
|
|
|
|
#include <asio.hpp>
|
|
#ifdef CINATRA_ENABLE_SSL
|
|
#include <asio/ssl.hpp>
|
|
#endif
|
|
#include <asio/steady_timer.hpp>
|
|
#include <asio/detail/noncopyable.hpp>
|
|
namespace boost
|
|
{
|
|
namespace asio
|
|
{
|
|
using namespace ::asio;
|
|
}
|
|
namespace system {
|
|
using ::std::error_code;
|
|
}
|
|
}
|
|
#else
|
|
#include <boost/asio.hpp>
|
|
#ifdef CINATRA_ENABLE_SSL
|
|
#include <boost/asio/ssl.hpp>
|
|
#endif
|
|
#include <boost/asio/steady_timer.hpp>
|
|
using namespace boost;
|
|
using tcp_socket = boost::asio::ip::tcp::socket;
|
|
#ifdef CINATRA_ENABLE_SSL
|
|
using ssl_socket = boost::asio::ssl::stream<boost::asio::ip::tcp::socket>;
|
|
#endif
|
|
#endif
|