Ignore:
Timestamp:
Oct 28, 2010, 3:36:14 PM (11 years ago)
Author:
Christian Geihe
Message:

Added MySQLDHT as a new architecture to the P2P-Interface expert settings tab as well as all necessary dlls.

override-bad-extension: MySql.Data.dll
override-bad-extension: MySQLDHT.dll
override-bad-extension: MySQLDHT.dll.config
override-bad-extension: MySQLDHT.pdb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypP2P/Internal/P2PBase.cs

    r1919 r2020  
    3737using PeersAtPlay.Util.Logging;
    3838using PeersAtPlay.P2POverlay.Chord;
     39using PeersAtPlay.P2PStorage.MySqlDHT;
    3940
    4041/* TODO:
     
    102103        public void Initialize()
    103104        {
    104             Scheduler scheduler = new STAScheduler("pap");
     105            Scheduler scheduler = new STAScheduler("pap_snal");
     106            Scheduler scheduler_2 = new STAScheduler("pap_mysql");
    105107
    106108            switch (P2PSettings.Default.LinkManager)
     
    180182                        bootstrapper = new LocalMachineBootstrapper();
    181183                        overlay = new PapsClientOverlay();
    182                         Dht = new PapsClientDht(scheduler);
     184                        Dht = new PapsClientDht(scheduler_2);
     185                        break;
     186                    case P2PArchitecture.SQLDB:
     187                        Dht = new MySqlDHT(scheduler_2);
    183188                        break;
    184189                    default:
     
    192197            }
    193198
    194             overlay.MessageReceived += OverlayMessageReceived;
     199            if (overlay != null)
     200            {
     201                overlay.MessageReceived += OverlayMessageReceived;
     202            }
    195203            Dht.SystemJoined += OnDhtSystemJoined;
    196204            Dht.SystemLeft += OnDhtSystemLeft;
Note: See TracChangeset for help on using the changeset viewer.