Send cluster reports

This commit is contained in:
JoelKatz
2013-07-10 15:41:13 -07:00
parent 8c1c954062
commit ecc864ac8e
11 changed files with 86 additions and 21 deletions

View File

@@ -70,6 +70,10 @@ public:
{
return mHelloed && !mDetaching;
}
bool isInCluster () const
{
return mCluster;
}
bool isInbound () const
{
return mInbound;
@@ -1425,6 +1429,7 @@ void PeerImp::recvCluster (protocol::TMCluster& packet)
applyLoadCharge(LT_UnwantedData);
return;
}
for (int i = 0; i < packet.clusternodes().size(); ++i)
{
protocol::TMClusterNode const& node = packet.clusternodes(i);