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

Location:
source/ariba/utility/bootstrap/modules/periodicbroadcast
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.cpp

    r5838 r7532  
    6363const unsigned int PeriodicBroadcast::serverport_v6 = 5636;
    6464
    65 PeriodicBroadcast::PeriodicBroadcast(BootstrapInformationCallback* _callback)
     65PeriodicBroadcast::PeriodicBroadcast(BootstrapInformationCallback* _callback, string info)
    6666        : BootstrapModule(_callback),
    6767        server(io_service, &newRemoteServices, &newRemoteServicesMutex) {
     
    108108
    109109        boost::mutex::scoped_lock lock( localServicesMutex );
     110        if(name.empty()) return;
     111
    110112        localServices.insert( std::make_pair(name, service) );
    111113}
     
    113115void PeriodicBroadcast::revokeService(string name){
    114116        boost::mutex::scoped_lock lock( localServicesMutex );
     117        if(name.empty()) return;
    115118
    116119        ServiceList::iterator i = localServices.find( name );
  • source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h

    r6919 r7532  
    6666        use_logging_h(PeriodicBroadcast);
    6767public:
    68         PeriodicBroadcast(BootstrapInformationCallback* _callback);
     68        PeriodicBroadcast(BootstrapInformationCallback* _callback, string info);
    6969        virtual ~PeriodicBroadcast();
    7070
     
    275275
    276276                        PeriodicBroadcastMessage msg;
     277                        if(service.getName().empty()) return;
    277278
    278279                        msg.setName( service.getName() );
     
    351352                                { // insert new found service
    352353                                        boost::mutex::scoped_lock lock( *servicesmutex );
     354                                        if(msg.getName().empty()) return;
    353355
    354356                                        ServiceList::iterator it = services->find( msg.getName() );
Note: See TracChangeset for help on using the changeset viewer.