add and remove tunnels without stopping others

This commit is contained in:
orignal 2017-07-28 15:12:15 -04:00
parent d47d8d22a3
commit 4c8c3b6947
4 changed files with 55 additions and 11 deletions

View file

@ -89,6 +89,9 @@ namespace client
void CleanupUDP(const boost::system::error_code & ecode);
void ScheduleCleanupUDP();
template<typename Visitor>
void VisitTunnels (Visitor v); // Visitor: (I2PService *) -> bool, true means retain
private:
std::mutex m_DestinationsMutex;