Ignore:
Timestamp:
Feb 4, 2010, 5:29:37 PM (14 years ago)
Author:
Christoph Mayer
Message:

-von außen konfigurierbare bootstrap module, -periodicbroadcast crash fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/OverlayBootstrap.cpp

    r7491 r7532  
    6666}
    6767
    68 void OverlayBootstrap::start(BaseOverlay* _overlay, const SpoVNetID& _spovnetid, const NodeID& _nodeid){
     68void OverlayBootstrap::start(BaseOverlay* _overlay,
     69                const SpoVNetID& _spovnetid, const NodeID& _nodeid,
     70                vector<pair<BootstrapManager::BootstrapType,string> > modules){
    6971        overlay = _overlay;
    7072        spovnetid = _spovnetid;
     
    7476
    7577        manager.registerCallback( this );
    76         manager.registerModule( BootstrapManager::BootstrapTypePeriodicBroadcast );
    77         //manager.registerModule( BootstrapManager::BootstrapTypeBluetoothSdp );
    78         //manager.registerModule( BootstrapManager::BootstrapTypeMulticastDns );
     78
     79        typedef pair<BootstrapManager::BootstrapType,string> X;
     80        BOOST_FOREACH( X i, modules){
     81                manager.registerModule( i.first, i.second );
     82        }
    7983
    8084        watchtimer.startWatchdog();
     
    8993
    9094        manager.unregisterCallback( this );
    91         manager.unregisterModule( BootstrapManager::BootstrapTypePeriodicBroadcast );
    92         //manager.unregisterModule( BootstrapManager::BootstrapTypeBluetoothSdp );
    93         //manager.unregisterModule( BootstrapManager::BootstrapTypeMulticastDns );
     95        manager.unregisterAllModules();
    9496
    9597        watchtimer.stopWatchdog();
Note: See TracChangeset for help on using the changeset viewer.