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.
30 lines
368 B
30 lines
368 B
10 years ago
|
#ifndef I2P_CONTROL_H__
|
||
|
#define I2P_CONTROL_H__
|
||
|
|
||
|
#include <thread>
|
||
|
#include <boost/asio.hpp>
|
||
|
|
||
|
namespace i2p
|
||
|
{
|
||
|
namespace client
|
||
|
{
|
||
|
class I2PControlService
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
I2PControlService (int port);
|
||
|
|
||
|
private:
|
||
|
|
||
|
bool m_IsRunning;
|
||
|
std::thread * m_Thread;
|
||
|
|
||
|
boost::asio::io_service m_Service;
|
||
|
boost::asio::ip::tcp::acceptor m_Acceptor;
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|