Ignore:
Timestamp:
Jul 29, 2009, 2:21:19 PM (15 years ago)
Author:
Christoph Mayer
Message:
 
File:
1 edited

Legend:

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

    r5414 r5420  
    101101                }
    102102
     103                _Service(const string& _name, const string& _info1,
     104                                const string& _info2, const string& _info3, const time_t& _lastseen = 0)
     105                        : name(_name), info1(_info1), info2(_info2), info3(_info3), lastseen(_lastseen){
     106                }
     107
    103108                _Service(const _Service& rh)
    104109                        : name(rh.name), info1(rh.info1), info2(rh.info2),
     
    225230                                        if( it != services->end() ) services->erase( it );
    226231
    227                                         Service s;
    228                                         s.info1 = msg.getInfo1();
    229                                         s.info2 = msg.getInfo2();
    230                                         s.info3 = msg.getInfo3();
    231                                         s.lastseen = time(NULL);
     232                                        Service s( msg.getName(), msg.getInfo1(), msg.getInfo2(), msg.getInfo3(), time(NULL));
    232233                                        services->insert( std::make_pair(msg.getName(), s) );
    233234                                }
Note: See TracChangeset for help on using the changeset viewer.