| 2849 | } |
| 2850 | |
| 2851 | bool CConnman::RemoveAddedNode(const std::string& strNode) |
| 2852 | { |
| 2853 | LOCK(m_added_nodes_mutex); |
| 2854 | for(std::vector<std::string>::iterator it = m_added_nodes.begin(); it != m_added_nodes.end(); ++it) { |
| 2855 | if (strNode == *it) { |
| 2856 | m_added_nodes.erase(it); |
| 2857 | return true; |
| 2858 | } |
| 2859 | } |
| 2860 | return false; |
| 2861 | } |
| 2862 | |
| 2863 | size_t CConnman::GetNodeCount(ConnectionDirection flags) const |
| 2864 | { |