internal int GetBucketIndexOf(Address addr) { int plength = Kademlia.CommonPrefixLength(addr, _address); return(Math.Min(plength, TableSize - 1)); }
private int GetBucketIndexOf(Peer peer) { int plength = Kademlia.CommonPrefixLength(peer.Address, _address); return(Math.Min(plength, _tableSize - 1)); }