Ignore:
Timestamp:
Jun 17, 2010, 5:11:02 PM (12 years ago)
Author:
Paul Lelgemann
Message:

+ CrypP2P: Return types of synchronous methods Store/Retrieve/Remove changed
o Work on the distributed KeySearcher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/PeerToPeerBaseProxy/P2PPeer.cs

    r1634 r1665  
    332332        public bool DHTstore(string sKey, byte[] byteValue)
    333333        {
    334             return P2PManager.IsConnected && P2PManager.Store(sKey, byteValue);
     334            return P2PManager.IsConnected && P2PManager.Store(sKey, byteValue).IsSuccessful();
    335335        }
    336336
    337337        public bool DHTstore(string sKey, string sValue)
    338338        {
    339             return P2PManager.IsConnected && P2PManager.Store(sKey, sValue);
     339            return P2PManager.IsConnected && P2PManager.Store(sKey, sValue).IsSuccessful();
    340340        }
    341341
    342342        public byte[] DHTload(string sKey)
    343343        {
    344             return P2PManager.IsConnected ? P2PManager.Retrieve(sKey) : null;
     344            return P2PManager.IsConnected ? P2PManager.Retrieve(sKey).Data : null;
    345345        }
    346346
    347347        public bool DHTremove(string sKey)
    348348        {
    349             return P2PManager.IsConnected && P2PManager.Remove(sKey);
     349            return P2PManager.IsConnected && P2PManager.Remove(sKey).IsSuccessful();
    350350        }
    351351
Note: See TracChangeset for help on using the changeset viewer.