mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
111 lines
3.8 KiB
C++
111 lines
3.8 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
|
|
#include "system/BoostIncludes.h"
|
|
|
|
// Checking overrides replaces unimplemented stubs with pure virtuals
|
|
#ifndef BEAST_COMPILER_CHECKS_SOCKET_OVERRIDES
|
|
# define BEAST_COMPILER_CHECKS_SOCKET_OVERRIDES 0
|
|
#endif
|
|
#if BEAST_COMPILER_CHECKS_SOCKET_OVERRIDES
|
|
# define BEAST_SOCKET_VIRTUAL = 0
|
|
#else
|
|
# define BEAST_SOCKET_VIRTUAL
|
|
#endif
|
|
|
|
namespace beast
|
|
{
|
|
|
|
// Order matters
|
|
# include "async/SharedHandler.h"
|
|
# include "async/SharedHandlerType.h"
|
|
# include "async/SharedHandlerPtr.h"
|
|
# include "async/ComposedAsyncOperation.h"
|
|
#include "async/SharedHandlerAllocator.h"
|
|
|
|
# include "basics/BufferType.h"
|
|
#include "basics/ContentBodyBuffer.h"
|
|
#include "basics/FixedInputBuffer.h"
|
|
#include "basics/PeerRole.h"
|
|
#include "basics/SSLContext.h"
|
|
|
|
# include "sockets/SocketBase.h"
|
|
# include "sockets/Socket.h"
|
|
# include "sockets/SocketWrapper.h"
|
|
#include "sockets/SocketWrapperStrand.h"
|
|
|
|
# include "http/HTTPVersion.h"
|
|
# include "http/HTTPField.h"
|
|
# include "http/HTTPHeaders.h"
|
|
# include "http/HTTPMessage.h"
|
|
# include "http/HTTPResponse.h"
|
|
# include "http/HTTPParser.h"
|
|
# include "http/UniformResourceLocator.h"
|
|
#include "http/HTTPClientType.h"
|
|
|
|
# include "protocol/InputParser.h"
|
|
# include "protocol/HandshakeDetectLogic.h"
|
|
#include "protocol/HandshakeDetectLogicPROXY.h"
|
|
#include "protocol/HandshakeDetectLogicSSL2.h"
|
|
#include "protocol/HandshakeDetectLogicSSL3.h"
|
|
#include "protocol/HandshakeDetector.h"
|
|
#include "protocol/PrefilledReadStream.h"
|
|
|
|
#include "tests/TestPeerBasics.h"
|
|
#include "tests/TestPeer.h"
|
|
#include "tests/TestPeerDetails.h"
|
|
#include "tests/TestPeerLogic.h"
|
|
#include "tests/TestPeerLogicSyncServer.h"
|
|
#include "tests/TestPeerLogicSyncClient.h"
|
|
#include "tests/TestPeerLogicProxyClient.h"
|
|
#include "tests/TestPeerLogicAsyncServer.h"
|
|
#include "tests/TestPeerLogicAsyncClient.h"
|
|
#include "tests/TestPeerType.h"
|
|
#include "tests/TestPeerDetailsTcp.h"
|
|
#include "tests/PeerTest.h"
|
|
|
|
}
|
|
|
|
#endif
|
|
|