Ignore:
Timestamp:
Jan 20, 2010, 3:09:12 PM (12 years ago)
Author:
arnold
Message:

Updated all P2PProjects - inclusive DLLs and PDBs

The lib is required by all developers, so I'm adding it explicitly to the repository.

override-bad-extension: Bootstrapper.dll
override-bad-extension: Bootstrapper.pdb
override-bad-extension: CertServices.dll
override-bad-extension: CertServices.pdb
override-bad-extension: FullMeshDHT.dll
override-bad-extension: FullMeshDHT.pdb
override-bad-extension: FullMeshOverlay.dll
override-bad-extension: FullMeshOverlay.pdb
override-bad-extension: Gears4Net.dll
override-bad-extension: Gears4Net.pdb
override-bad-extension: NetGearsTCP.dll
override-bad-extension: NetGearsTCP.pdb
override-bad-extension: PeersAtPlayBase.dll
override-bad-extension: PeersAtPlayBase.pdb
override-bad-extension: SimpleSnalNG.dll
override-bad-extension: SimpleSnalNG.pdb
override-bad-extension: Stun.dll
override-bad-extension: Stun.pdb
override-bad-extension: Util.dll
override-bad-extension: Util.pdb

Location:
trunk/CrypPlugins/PeerToPeerBase
Files:
2 added
41 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/PeerToPeerBase/PeerToPeerBase.cs

    r1067 r1098  
    9999        #region Variables
    100100
    101         /// <summary>
    102         /// If you want to ignore the integrated Versioning System of PeersAtPlay,
    103         /// set this flag to true.
    104         /// The DHT has an integrated VERSIONING SYSTEM. When a peer wants
    105         /// to store data in an entry, which already holds data, the version
    106         /// number will be compared with the peers' version number. If the
    107         /// peer hasn't read/write the entry the last time, the storing instruction
    108         /// will be rejected. You must first read the actual data and than you can
    109         /// store your data in this entry...
    110         /// </summary>
    111         private const bool IGNORE_DHT_VERSIONING_SYSTEM = true;
    112 
    113101        private bool started = false;
    114102        /// <summary>
     
    365353        public void AsynchStore(string sKey, string sValue)
    366354        {
    367             this.dht.Store(OnAsynchStore_Completed, sKey, UTF8Encoding.UTF8.GetBytes(sValue), IGNORE_DHT_VERSIONING_SYSTEM);
     355            //this.dht.Store(OnAsynchStore_Completed, sKey, UTF8Encoding.UTF8.GetBytes(sValue), IGNORE_DHT_VERSIONING_SYSTEM);
     356            this.dht.Store(OnAsynchStore_Completed, sKey, UTF8Encoding.UTF8.GetBytes(sValue));
    368357        }
    369358
     
    387376        public void AsynchRemove(string sKey)
    388377        {
    389             this.dht.Remove(OnAsynchRemove_Completed, sKey, IGNORE_DHT_VERSIONING_SYSTEM);
     378            //this.dht.Remove(OnAsynchRemove_Completed, sKey, IGNORE_DHT_VERSIONING_SYSTEM);
     379            this.dht.Remove(OnAsynchRemove_Completed, sKey);
    390380        }
    391381        private void OnAsynchRemove_Completed(RemoveResult rr)
     
    416406            AutoResetEvent are = new AutoResetEvent(false);
    417407            // this method returns always a GUID to distinguish between asynchronous actions
    418             Guid g = this.dht.Store(OnSynchStoreCompleted, sKey, byteData, IGNORE_DHT_VERSIONING_SYSTEM);
     408            Guid g = this.dht.Store(OnSynchStoreCompleted, sKey, byteData);
     409            //Guid g = this.dht.Store(OnSynchStoreCompleted, sKey, byteData, IGNORE_DHT_VERSIONING_SYSTEM);
    419410
    420411            ResponseWait rw = new ResponseWait() { WaitHandle = are, key=sKey , value = byteData };
     
    561552            AutoResetEvent are = new AutoResetEvent(false);
    562553            // this method returns always a GUID to distinguish between asynchronous actions
    563             Guid g = this.dht.Remove(OnSynchRemoveCompleted, sKey, IGNORE_DHT_VERSIONING_SYSTEM);
     554            Guid g = this.dht.Remove(OnSynchRemoveCompleted, sKey);
     555            //Guid g = this.dht.Remove(OnSynchRemoveCompleted, sKey, IGNORE_DHT_VERSIONING_SYSTEM);
    564556
    565557            ResponseWait rw = new ResponseWait() { WaitHandle = are };
Note: See TracChangeset for help on using the changeset viewer.