publish number of leasets and routers for floodfill

This commit is contained in:
orignal 2015-03-18 15:06:15 -04:00
parent 647bb501d1
commit 0b754ec65d
6 changed files with 28 additions and 4 deletions

View file

@ -548,11 +548,16 @@ namespace data
ExtractCaps (caps);
}
void RouterInfo::SetProperty (const char * key, const char * value)
void RouterInfo::SetProperty (const std::string& key, const std::string& value)
{
m_Properties[key] = value;
}
void RouterInfo::DeleteProperty (const std::string& key)
{
m_Properties.erase (key);
}
bool RouterInfo::IsFloodfill () const
{
return m_Caps & Caps::eFloodfill;