Ignore:
Timestamp:
Oct 28, 2010, 2:49:58 PM (11 years ago)
Author:
nolte
Message:

Updated the Keysearcher DHT by adding a Client Identifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/P2P/Tree/Leaf.cs

    r2017 r2019  
    1313        private bool isLeafReserved;
    1414        private const int RESERVATIONTIMEOUT = 30;
    15 
    16         // TODO add client identifier
    17         //internal int ClientIdentifier;
    18 
     15        //--------------------------------------------------------------------------------------------
     16        private long clientIdentifier = Cryptool.PluginBase.Miscellaneous.UniqueIdentifier.GetID();
     17        //--------------------------------------------------------------------------------------------
    1918
    2019        public Leaf(StorageHelper storageHelper, KeyQualityHelper keyQualityHelper, Node parentNode, BigInteger id, string distributedJobIdentifier)
     
    7473            return base.ToString() + ", last reservation date " + LastReservationDate;
    7574        }
     75
     76        public long getClientIdentifier()
     77        {
     78            return clientIdentifier;
     79        }
     80
     81        public void setClientIdentifier(long id)
     82        {
     83            clientIdentifier = id;
     84        }
    7685    }
    7786}
Note: See TracChangeset for help on using the changeset viewer.