Exemplo n.º 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];
}
Exemplo n.º 2
0
bool IsLimited(const CNetAddr &addr)
{
	return IsLimited(addr.GetNetwork());
}