Exemple #1
0
/** 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];
}
Exemple #2
0
bool IsLimited(const CNetAddr &addr)
{
	return IsLimited(addr.GetNetwork());
}