Changeset 2434


Ignore:
Timestamp:
Feb 17, 2009, 12:04:30 PM (16 years ago)
Author:
Christoph Mayer
Message:

-getBootstrapNodes implementiert

Location:
source/ariba
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/AribaModule.cpp

    r2409 r2434  
    9292const communication::EndpointDescriptor* AribaModule::getBootstrapNode(
    9393                const Name& spovnet) {
     94
     95        BOOST_FOREACH( BootstrapInfo info, bootstrapNodes ){
     96                if( info.spovnetName == spovnet ){
     97                        BOOST_FOREACH( BootstrapNode node, info.desc ){
     98                                if( node.desc != NULL ) return node.desc;
     99                        }
     100                }
     101        }
     102
    94103        return NULL;
    95104}
  • source/ariba/AribaModule.h

    r2409 r2434  
    4242#include <string>
    4343#include <vector>
     44#include <boost/foreach.hpp>
    4445
    4546// usings
Note: See TracChangeset for help on using the changeset viewer.