Exemplo n.º 1
0
        public ContactCollection(DistributedRoutingTable drt)
        {
            LocalContact  = drt.LocalContact;
            NetworkId     = drt.NetworkId;
            Configuration = drt.Configuration;
            this.DistributedRoutingTable = drt;

            for (int i = 0; i < buckets.Length; i++)
            {
                buckets[i] = new ContactBucket(drt, i);
            }
        }
Exemplo n.º 2
0
 public ContactBucket(DistributedRoutingTable drt, int commonBitsCount)
 {
     this.DistributedRoutingTable = drt;
     this.CommonBitsCount         = commonBitsCount;
 }