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.
35 lines
603 B
35 lines
603 B
8 years ago
|
#ifndef WEBSOCKS_H_
|
||
|
#define WEBSOCKS_H_
|
||
|
#include <string>
|
||
8 years ago
|
#include <memory>
|
||
|
#include "I2PService.h"
|
||
|
#include "Destination.h"
|
||
8 years ago
|
|
||
|
namespace i2p
|
||
|
{
|
||
|
namespace client
|
||
|
{
|
||
|
|
||
8 years ago
|
class WebSocksImpl;
|
||
8 years ago
|
|
||
8 years ago
|
/** @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();
|
||
8 years ago
|
|
||
8 years ago
|
void Start();
|
||
|
void Stop();
|
||
8 years ago
|
|
||
8 years ago
|
boost::asio::ip::tcp::endpoint GetLocalEndpoint() const;
|
||
|
|
||
|
const char * GetName() { return "WebSOCKS Proxy"; }
|
||
|
|
||
|
private:
|
||
|
WebSocksImpl * m_Impl;
|
||
|
};
|
||
8 years ago
|
}
|
||
|
}
|
||
|
#endif
|