/** check whether a given address is in a network we can probably connect to */ bool IsReachable(const CNetAddr &addr) { LOCK(cs_mapLocalHost); enum Network net = addr.GetNetwork(); return vfReachable[net] && !vfLimited[net]; }
bool IsLimited(const CNetAddr &addr) { return IsLimited(addr.GetNetwork()); }