Changeset 2017


Ignore:
Timestamp:
Oct 27, 2010, 7:34:25 PM (11 years ago)
Author:
Paul Lelgemann
Message:

+ Added TODOs

Location:
trunk/CrypPlugins/KeySearcher/P2P
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/P2P/DistributedBruteForceManager.cs

    r1751 r2017  
    100100                }
    101101
     102                // TODO if reserve returns successfully, start timer to update our reserveration every few minutes
     103                // if we cannot reacquire our lock in the timer, calculation must be aborted
    102104                if (!currentLeaf.ReserveLeaf())
    103105                {
  • trunk/CrypPlugins/KeySearcher/P2P/Storage/StorageHelper.cs

    r1705 r2017  
    5757            var buffer = nodeToUpdate.LastReservationDate.ToBinary();
    5858            binaryWriter.Write(buffer);
     59           
     60            // TODO write client identification to binaryWriter, e.g.
     61            // binaryWriter.Write("id here from some other method");
    5962        }
    6063
     
    122125                nodeToUpdate.LastReservationDate = date;
    123126            }
     127
     128            // TODO read leaf from reader, e.g.
     129            /*
     130            try
     131            {
     132                nodeToUpdate.ClientIdentifier = binaryReader.ReadString();
     133            } catch (IOException)
     134            {
     135                // client id not available, use default
     136                nodeToUpdate.ClientIdentifier = "-1";
     137            }
     138            */
    124139        }
    125140
  • trunk/CrypPlugins/KeySearcher/P2P/Tree/Leaf.cs

    r2011 r2017  
    1313        private bool isLeafReserved;
    1414        private const int RESERVATIONTIMEOUT = 30;
     15
     16        // TODO add client identifier
     17        //internal int ClientIdentifier;
     18
    1519
    1620        public Leaf(StorageHelper storageHelper, KeyQualityHelper keyQualityHelper, Node parentNode, BigInteger id, string distributedJobIdentifier)
  • trunk/CrypPlugins/KeySearcher/P2P/Tree/NodeBase.cs

    r1693 r2017  
    5858            ParentNode.UpdateCache();
    5959
     60            // TODO add check, if we retrieved our lock (e.g. by comparing the lock date or the future client identifier
    6061            if (StorageHelper.RetrieveWithStatistic(StorageHelper.KeyInDht(this)).Status == RequestResultType.KeyNotFound)
    6162            {
Note: See TracChangeset for help on using the changeset viewer.