Files
rippled/modules/ripple_app/peers/PeerDoor.h
2013-08-25 01:57:51 -07:00

30 lines
720 B
C++

//------------------------------------------------------------------------------
/*
Copyright (c) 2011-2013, OpenCoin, Inc.
*/
//==============================================================================
#ifndef RIPPLE_PEERDOOR_H_INCLUDED
#define RIPPLE_PEERDOOR_H_INCLUDED
/** Handles incoming connections from peers.
*/
class PeerDoor : LeakChecked <PeerDoor>
{
public:
virtual ~PeerDoor () { }
enum Kind
{
sslRequired,
sslAndPROXYRequired
};
static PeerDoor* New (Kind kind, std::string const& ip, int port,
boost::asio::io_service& io_service, boost::asio::ssl::context& ssl_context);
//virtual boost::asio::ssl::context& getSSLContext () = 0;
};
#endif