Brunet.Symphony.StructuredNearConnectionOverlord.GetSelfTarget C# (CSharp) Метод

GetSelfTarget() защищенный Метод

protected GetSelfTarget ( ) : Address
Результат Address
    protected Address GetSelfTarget()
    {
      /**
       * try to get at least one neighbor using forwarding through the 
       * leaf .  The forwarded address is 2 larger than the address of
       * the new node that is getting connected.
       */
      BigInteger local_int_add = _node.Address.ToBigInteger();
      //must have even addresses so increment twice
      local_int_add += 2;
      //Make sure we don't overflow:
      BigInteger tbi = new BigInteger(local_int_add % Address.Full);
      return new AHAddress(tbi);
    }