i2pd/SOCKS.h

33 lines
694 B
C
Raw Normal View History

2015-01-04 00:18:05 +03:00
#ifndef SOCKS_H__
#define SOCKS_H__
2014-07-14 20:40:06 +04:00
2014-11-23 19:33:58 +03:00
#include <memory>
#include <set>
#include <boost/asio.hpp>
#include <mutex>
#include "I2PService.h"
2014-07-14 20:40:06 +04:00
namespace i2p
{
namespace proxy
{
class SOCKSServer: public i2p::client::TCPIPAcceptor
{
public:
SOCKSServer(int port, std::shared_ptr<i2p::client::ClientDestination> localDestination = nullptr);
~SOCKSServer() {};
protected:
// Implements TCPIPAcceptor
std::shared_ptr<i2p::client::I2PServiceHandler> CreateHandler(std::shared_ptr<boost::asio::ip::tcp::socket> socket);
const char* GetName() { return "SOCKS"; }
};
2014-07-14 20:40:06 +04:00
typedef SOCKSServer SOCKSProxy;
2014-07-14 20:40:06 +04:00
}
}
#endif