find router with specified caps

This commit is contained in:
orignal 2014-03-19 15:58:57 -04:00
parent fb9d351600
commit 59d195c6da
4 changed files with 9 additions and 6 deletions

View file

@ -28,7 +28,7 @@ namespace data
enum Caps
{
eFloodfill = 0x01,
eHighBanwidth = 0x02,
eHighBandwidth = 0x02,
eReachable = 0x04
};
@ -84,7 +84,8 @@ namespace data
bool IsSSU (bool v4only = true) const;
bool IsCompatible (const RouterInfo& other) const { return m_SupportedTransports & other.m_SupportedTransports; };
bool UsesIntroducer () const;
uint8_t GetCaps () const { return m_Caps; };
void SetUnreachable (bool unreachable) { m_IsUnreachable = unreachable; };
bool IsUnreachable () const { return m_IsUnreachable; };