mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
check network status
This commit is contained in:
parent
e21dac21c8
commit
ffa0f0afd9
5 changed files with 24 additions and 5 deletions
|
@ -94,7 +94,7 @@ namespace transport
|
|||
bool IsBoundNTCP2() const { return m_NTCP2Server != nullptr; }
|
||||
|
||||
bool IsOnline() const { return m_IsOnline; };
|
||||
void SetOnline (bool online) { m_IsOnline = online; };
|
||||
void SetOnline (bool online);
|
||||
|
||||
boost::asio::io_service& GetService () { return *m_Service; };
|
||||
std::shared_ptr<i2p::crypto::DHKeys> GetNextDHKeysPair ();
|
||||
|
@ -151,7 +151,8 @@ namespace transport
|
|||
|
||||
private:
|
||||
|
||||
bool m_IsOnline, m_IsRunning, m_IsNAT;
|
||||
volatile bool m_IsOnline;
|
||||
bool m_IsRunning, m_IsNAT;
|
||||
std::thread * m_Thread;
|
||||
boost::asio::io_service * m_Service;
|
||||
boost::asio::io_service::work * m_Work;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue