mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
738 B
34 lines
738 B
10 years ago
|
#ifndef SOCKS_H__
|
||
|
#define SOCKS_H__
|
||
10 years ago
|
|
||
10 years ago
|
#include <memory>
|
||
10 years ago
|
#include <set>
|
||
10 years ago
|
#include <boost/asio.hpp>
|
||
10 years ago
|
#include <mutex>
|
||
10 years ago
|
#include "I2PService.h"
|
||
10 years ago
|
|
||
|
namespace i2p
|
||
|
{
|
||
|
namespace proxy
|
||
|
{
|
||
9 years ago
|
class SOCKSServer: public i2p::client::TCPIPAcceptor
|
||
|
{
|
||
|
public:
|
||
10 years ago
|
|
||
9 years ago
|
SOCKSServer(const std::string& address, int port,
|
||
|
std::shared_ptr<i2p::client::ClientDestination> localDestination = nullptr);
|
||
9 years ago
|
~SOCKSServer() {};
|
||
10 years ago
|
|
||
9 years ago
|
protected:
|
||
|
// Implements TCPIPAcceptor
|
||
|
std::shared_ptr<i2p::client::I2PServiceHandler> CreateHandler(std::shared_ptr<boost::asio::ip::tcp::socket> socket);
|
||
|
const char* GetName() { return "SOCKS"; }
|
||
|
};
|
||
10 years ago
|
|
||
9 years ago
|
typedef SOCKSServer SOCKSProxy;
|
||
10 years ago
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
#endif
|