|
|
@ -6,12 +6,10 @@ |
|
|
|
#include "util/Timestamp.h" |
|
|
|
#include "util/Timestamp.h" |
|
|
|
#include "version.h" |
|
|
|
#include "version.h" |
|
|
|
|
|
|
|
|
|
|
|
namespace i2p |
|
|
|
namespace i2p { |
|
|
|
{ |
|
|
|
namespace client { |
|
|
|
namespace client |
|
|
|
I2PControlService::I2PControlService(const std::string& address, int port, const std::string& pass) |
|
|
|
{ |
|
|
|
: m_Session(std::make_shared<I2PControlSession>(m_Service, pass)), |
|
|
|
I2PControlService::I2PControlService(const std::string& address, int port) |
|
|
|
|
|
|
|
: m_Session(std::make_shared<I2PControlSession>(m_Service)), |
|
|
|
|
|
|
|
m_IsRunning(false), m_Thread(nullptr), |
|
|
|
m_IsRunning(false), m_Thread(nullptr), |
|
|
|
m_Acceptor(m_Service, boost::asio::ip::tcp::endpoint( |
|
|
|
m_Acceptor(m_Service, boost::asio::ip::tcp::endpoint( |
|
|
|
boost::asio::ip::address::from_string(address), port) |
|
|
|
boost::asio::ip::address::from_string(address), port) |
|
|
|