mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-17 21:26:04 +00:00
c5d3c0c6f8
* enable socks, websocks and httpproxy as client tunnels * remove old websocks config
35 lines
603 B
C++
35 lines
603 B
C++
#ifndef WEBSOCKS_H_
|
|
#define WEBSOCKS_H_
|
|
#include <string>
|
|
#include <memory>
|
|
#include "I2PService.h"
|
|
#include "Destination.h"
|
|
|
|
namespace i2p
|
|
{
|
|
namespace client
|
|
{
|
|
|
|
class WebSocksImpl;
|
|
|
|
/** @brief websocket socks proxy server */
|
|
class WebSocks : public i2p::client::I2PService
|
|
{
|
|
public:
|
|
WebSocks(const std::string & addr, int port, std::shared_ptr<ClientDestination> localDestination);
|
|
~WebSocks();
|
|
|
|
void Start();
|
|
void Stop();
|
|
|
|
boost::asio::ip::tcp::endpoint GetLocalEndpoint() const;
|
|
|
|
const char * GetName() { return "WebSOCKS Proxy"; }
|
|
|
|
private:
|
|
WebSocksImpl * m_Impl;
|
|
};
|
|
}
|
|
}
|
|
#endif
|