Changeset 3041 for source/ariba/Node.cpp
- Timestamp:
- Apr 23, 2009, 9:18:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/Node.cpp
r3037 r3041 129 129 130 130 Node::Node(AribaModule& ariba_mod, const Name& node_name) : 131 ariba_mod(ariba_mod), name(node_name), base_overlay(NULL) { 131 ariba_mod(ariba_mod), name(node_name) { 132 base_overlay = new BaseOverlay(); 132 133 } 133 134 134 135 Node::~Node() { 136 delete base_overlay; 137 base_overlay = NULL; 135 138 } 136 139 … … 140 143 nodeId = generateNodeId(name); 141 144 142 //logging("joining spovnet on"143 // << " [spovnetid=]" << spovnetId.toString()144 // << " [nodeid=]" << nodeId.toString() );145 146 //logging_info("starting base communication...");147 145 ariba_mod.base_comm->start(ariba_mod.ip_addr, ariba_mod.tcp_port); 148 149 //logging_info("starting base overlay..."); 150 base_overlay = new BaseOverlay( *ariba_mod.base_comm, nodeId ); 146 base_overlay->start( *ariba_mod.base_comm, nodeId ); 151 147 152 148 const communication::EndpointDescriptor* ep = … … 165 161 nodeId = generateNodeId(name); 166 162 167 //logging("joining spovnet on"168 // << " [spovnetid=]" << spovnetId.toString()169 // << " [nodeid=]" << nodeId.toString() );170 171 //logging_info("starting base communication...");172 163 ariba_mod.base_comm->start(ariba_mod.ip_addr, ariba_mod.tcp_port); 173 164 174 //logging_info("starting base overlay..."); 175 base_overlay = new BaseOverlay( *ariba_mod.base_comm, nodeId ); 165 base_overlay->start( *ariba_mod.base_comm, nodeId ); 176 166 base_overlay->createSpoVNet( spovnetId ); 177 167 … … 184 174 ariba_mod.base_comm->stop(); 185 175 186 delete base_overlay; 187 base_overlay = NULL; 176 base_overlay->stop(); 188 177 } 189 178
Note:
See TracChangeset
for help on using the changeset viewer.