mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
96 lines
3.2 KiB
C++
96 lines
3.2 KiB
C++
//------------------------------------------------------------------------------
|
|
/*
|
|
This file is part of Beast: https://github.com/vinniefalco/Beast
|
|
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
//==============================================================================
|
|
|
|
#ifndef BEAST_ASIO_H_INCLUDED
|
|
#define BEAST_ASIO_H_INCLUDED
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
/* If you fail to make sure that all your compile units are building Beast with
|
|
the same set of option flags, then there's a risk that different compile
|
|
units will treat the classes as having different memory layouts, leading to
|
|
very nasty memory corruption errors when they all get linked together.
|
|
That's why it's best to always include the BeastConfig.h file before any
|
|
beast headers.
|
|
*/
|
|
#ifndef BEAST_BEASTCONFIG_H_INCLUDED
|
|
# ifdef _MSC_VER
|
|
# pragma message ("Have you included your BeastConfig.h file before including the Beast headers?")
|
|
# else
|
|
# warning "Have you included your BeastConfig.h file before including the Beast headers?"
|
|
# endif
|
|
#endif
|
|
|
|
// Must come before boost includes to fix the bost placeholders.
|
|
#include "../beast_core/beast_core.h"
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
/* This module requires boost and possibly OpenSSL */
|
|
|
|
// Make sure we take care of fixing boost::bind oddities first.
|
|
#if !defined(BEAST_CORE_H_INCLUDED)
|
|
#error beast_core.h must be included before including this file
|
|
#endif
|
|
|
|
#if BEAST_WIN32
|
|
# ifndef _WIN32_WINNT
|
|
# define _WIN32_WINNT 0x0600
|
|
# endif
|
|
# ifndef _VARIADIC_MAX
|
|
# define _VARIADIC_MAX 10
|
|
# endif
|
|
#endif
|
|
|
|
#include <boost/asio.hpp>
|
|
#include <boost/asio/ssl.hpp>
|
|
#include <boost/foreach.hpp>
|
|
#include <boost/type_traits.hpp>
|
|
|
|
//#include <boost/mpl/at.hpp>
|
|
//#include <boost/asio/io_service.hpp>
|
|
//#include <boost/array.hpp>
|
|
//#include <boost/bind.hpp>
|
|
//#include <boost/unordered_map.hpp>
|
|
//#include <boost/mpl/vector.hpp>
|
|
|
|
// VFALCO TODO check for version availability
|
|
#ifndef BOOST_ASIO_INITFN_RESULT_TYPE
|
|
#define BOOST_ASIO_INITFN_RESULT_TYPE(expr,val) void
|
|
#endif
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace beast
|
|
{
|
|
|
|
// Order matters
|
|
|
|
#include "sockets/beast_SocketBase.h"
|
|
#include "sockets/beast_Socket.h"
|
|
#include "sockets/beast_SocketInterface.h"
|
|
#include "sockets/beast_SocketWrapperBase.h"
|
|
#include "sockets/beast_SocketWrapper.h"
|
|
#include "sockets/beast_SharedSocket.h"
|
|
|
|
}
|
|
|
|
#endif
|
|
|