Changeset 5316 for source/ariba/Node.cpp
- Timestamp:
- Jul 24, 2009, 8:53:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/Node.cpp
r5284 r5316 63 63 const communication::EndpointDescriptor* ep = 64 64 ariba_mod.getBootstrapNode(vnetname); 65 if( ep == NULL ) { 66 std::cout << "no bootstrap node defined" << std::endl; 67 return; 68 } 69 ariba_mod.base_comm->start(); 70 base_overlay->start( *ariba_mod.base_comm, nodeId ); 71 base_overlay->joinSpoVNet( spovnetId, *ep); 65 66 // start base comm if not started 67 if( !ariba_mod.base_comm->isStarted() ) 68 ariba_mod.base_comm->start(); 69 70 // start base overlay if not started 71 // join against ourselfs 72 if( !base_overlay->isStarted() ) 73 base_overlay->start( *ariba_mod.base_comm, nodeId ); 74 base_overlay->joinSpoVNet( spovnetId ); 75 76 // join against further nodes 77 if( ep != NULL && *ep != EndpointDescriptor::UNSPECIFIED ) 78 base_overlay->joinSpoVNet( spovnetId, *ep); 72 79 } 73 80 … … 82 89 nodeId = generateNodeId(name); 83 90 84 ariba_mod.base_comm->start(); 85 86 base_overlay->start( *ariba_mod.base_comm, nodeId ); 91 // start base comm if not started 92 if( !ariba_mod.base_comm->isStarted() ) 93 ariba_mod.base_comm->start(); 94 95 // start base overlay if not started 96 if( !base_overlay->isStarted() ) 97 base_overlay->start( *ariba_mod.base_comm, nodeId ); 98 87 99 base_overlay->createSpoVNet( spovnetId, ovrpset ); 88 89 ariba_mod.addBootstrapNode(vnetname,90 new EndpointDescriptor(ariba_mod.base_comm->getEndpointDescriptor()));91 100 } 92 101
Note:
See TracChangeset
for help on using the changeset viewer.