An Overlay-based
Virtual Network Substrate
SpoVNet

Ignore:
Timestamp:
Jul 30, 2009, 12:57:05 PM (14 years ago)
Author:
Christoph Mayer
Message:
 
Location:
source/ariba/utility/bootstrap/modules/periodicbroadcast
Files:
3 edited

Legend:

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

    r5465 r5479  
    181181                void sendservice(Service service){
    182182
    183                         PeriodicBroadcastMessage msg( service.name, service.info1, service.info2, service.info3 );
     183                        PeriodicBroadcastMessage msg;
     184
     185                        msg.setName( service.name );
     186                        msg.setInfo1( service.info1 );
     187                        msg.setInfo2( service.info2 );
     188                        msg.setInfo3( service.info3 );
     189
    184190                        Data data = data_serialize( msg, DEFAULT_V );
    185191                        uint8_t* pnt = data.getBuffer();
  • source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcastMessage.cpp

    r4851 r5479  
    4444vsznDefault(PeriodicBroadcastMessage);
    4545
    46 PeriodicBroadcastMessage::PeriodicBroadcastMessage(
    47                 string _name, string _info1, string _info2, string _info3)
    48 : name(_name), info1(_info1), info2(_info2), info3(_info3){
     46PeriodicBroadcastMessage::PeriodicBroadcastMessage()
     47: name(""), info1(""), info2(""), info3(""){
    4948}
    5049
    5150PeriodicBroadcastMessage::~PeriodicBroadcastMessage(){
     51}
     52
     53void PeriodicBroadcastMessage::setName(string _name){
     54        name = _name;
     55}
     56
     57void PeriodicBroadcastMessage::setInfo1(string _info1){
     58        info1 = _info1;
     59}
     60
     61void PeriodicBroadcastMessage::setInfo2(string _info2){
     62        info2 = _info2;
     63}
     64
     65void PeriodicBroadcastMessage::setInfo3(string _info3){
     66        info3 = _info3;
    5267}
    5368
  • source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcastMessage.h

    r4851 r5479  
    6161
    6262public:
    63         PeriodicBroadcastMessage(string _name = "", string _info1 = "", string _info2 = "", string _info3 = "");
     63        PeriodicBroadcastMessage();
    6464        virtual ~PeriodicBroadcastMessage();
     65
     66        void setName(string _name);
     67        void setInfo1(string _info1);
     68        void setInfo2(string _info2);
     69        void setInfo3(string _info3);
    6570
    6671        string getName();
Note: See TracChangeset for help on using the changeset viewer.