Changeset 4838 for source/ariba
- Timestamp:
- Jul 9, 2009, 3:05:13 PM (15 years ago)
- Location:
- source/ariba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r4836 r4838 115 115 state = BaseOverlayStateJoinInitiated; 116 116 117 118 117 // 119 118 // start bootstrapping for spovnetid -
source/ariba/overlay/OverlayBootstrap.cpp
r4837 r4838 50 50 nodeid( NodeID::UNSPECIFIED ), 51 51 overlay( NULL ){ 52 53 manager.registerAllModules();54 52 } 55 53 56 54 OverlayBootstrap::~OverlayBootstrap(){ 57 manager.unregisterAllModules();58 55 } 59 56 … … 64 61 65 62 manager.registerCallback( this ); 63 manager.registerAllModules(); 66 64 } 67 65 void OverlayBootstrap::stop(){ … … 71 69 72 70 manager.unregisterCallback( this ); 71 manager.unregisterAllModules(); 73 72 } 74 73 … … 89 88 // 90 89 90 // announcement for another spovnet 91 91 if( sid != spovnetid ) 92 92 return; 93 93 94 logging_info( "found bootstrap node for our SpoVNetID" << sid.toString() 95 << " on NodeID " << nid << " and endpoint " << ep.toString() ); 94 // announcement for our spovnet 95 logging_info( "found bootstrap node for our SpoVNetID " << sid.toString() 96 << " on NodeID " << nid << " with endpoint " << ep.toString() ); 96 97 } 97 98 -
source/ariba/utility/bootstrap/modules/multicastdns/MulticastDns.cpp
r4836 r4838 396 396 case AVAHI_RESOLVER_FOUND: 397 397 398 char addr[AVAHI_ADDRESS_STR_MAX];399 400 avahi_address_snprint(addr, sizeof(addr), address);401 402 398 string info1 = ""; 403 399 string info2 = ""; … … 405 401 406 402 if(txt != NULL){ 407 char* cinfo = avahi_string_list_to_string(txt);408 info1 = cinfo;409 avahi_free(cinfo);403 char* cinfo = (char*)avahi_string_list_get_text(txt); 404 info1 = string(cinfo); 405 txt = avahi_string_list_get_next(txt); 410 406 } 411 407 412 if(txt != NULL && avahi_string_list_get_next(txt) != NULL){413 char* cinfo = avahi_string_list_to_string( avahi_string_list_get_next(txt));414 info2 = cinfo;415 avahi_free(cinfo);408 if(txt != NULL){ 409 char* cinfo = (char*)avahi_string_list_get_text(txt); 410 info2 = string(cinfo); 411 txt = avahi_string_list_get_next(txt); 416 412 } 417 413 418 if(txt != NULL && avahi_string_list_get_next(txt) != NULL){419 char* cinfo = avahi_string_list_to_string( avahi_string_list_get_next(txt));420 info3 = cinfo;421 avahi_free(cinfo);414 if(txt != NULL){ 415 char* cinfo = (char*)avahi_string_list_get_text(txt); 416 info3 = string(cinfo); 417 txt = avahi_string_list_get_next(txt); 422 418 } 423 419
Note:
See TracChangeset
for help on using the changeset viewer.