specify keys file for proxy's local destination

This commit is contained in:
orignal 2015-03-17 11:44:01 -04:00
parent 028e3a6c35
commit a09c67772c
6 changed files with 209 additions and 134 deletions

View file

@ -6,6 +6,7 @@
#include <boost/asio.hpp>
#include <mutex>
#include "I2PService.h"
#include "Destination.h"
namespace i2p
{
@ -13,18 +14,19 @@ namespace proxy
{
class HTTPProxyServer: public i2p::client::TCPIPAcceptor
{
public:
HTTPProxyServer(int port, std::shared_ptr<i2p::client::ClientDestination> localDestination = nullptr);
~HTTPProxyServer() {};
protected:
// Implements TCPIPAcceptor
std::shared_ptr<i2p::client::I2PServiceHandler> CreateHandler(boost::asio::ip::tcp::socket * socket);
const char* GetName() { return "HTTP Proxy"; }
public:
HTTPProxyServer(int port);
~HTTPProxyServer() {}
};
typedef HTTPProxyServer HTTPProxy;
}
}
#endif
#endif