Ignore:
Timestamp:
Aug 14, 2009, 2:17:07 PM (15 years ago)
Author:
Christoph Mayer
Message:

more agressive sdp scan, sdp off when in spovnet, sdp on and agressive when not

File:
1 edited

Legend:

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

    r5860 r5953  
    175175        }
    176176
     177        // TODO: --> SIGCOMM hack <--
     178        // if we have no overlay neighbors, make sure sdp is loaded
     179        // sdp searching is turned off when we have bootstrapped
     180        if(overlay->getOverlayNeighbors().size() > 0){
     181
     182                // switch off sdp when we we _are_ in the spovnet already
     183                if(manager.isModuleRegistered(BootstrapManager::BootstrapTypeBluetoothSdp))
     184                        manager.unregisterModule(BootstrapManager::BootstrapTypeBluetoothSdp);
     185
     186                return;
     187        }
     188
     189        // make sure sdp is running when we are _not_ in the spovnet
     190        if(!manager.isModuleRegistered(BootstrapManager::BootstrapTypeBluetoothSdp))
     191                manager.registerModule(BootstrapManager::BootstrapTypeBluetoothSdp);
     192
     193        //
    177194        // we have overlay neighbors -> ok
    178         if(overlay->getOverlayNeighbors().size() > 0) return;
     195        //
    179196
    180197        logging_info("overlay not joined, checking for earlier used bootstrap information");
Note: See TracChangeset for help on using the changeset viewer.