mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
add initial WebSOCKS implementation
This commit is contained in:
parent
d0e9fe1e3e
commit
0d83a34cfd
6 changed files with 458 additions and 2 deletions
27
WebSocks.h
Normal file
27
WebSocks.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#ifndef WEBSOCKS_H_
|
||||
#define WEBSOCKS_H_
|
||||
#include <string>
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
namespace client
|
||||
{
|
||||
|
||||
class WebSocksImpl;
|
||||
|
||||
/** @brief websocket socks proxy server */
|
||||
class WebSocks
|
||||
{
|
||||
public:
|
||||
WebSocks(const std::string & addr, int port);
|
||||
~WebSocks();
|
||||
|
||||
void Start();
|
||||
void Stop();
|
||||
|
||||
private:
|
||||
WebSocksImpl * m_Impl;
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue