Changeset 5896
- Timestamp:
- Aug 12, 2009, 4:19:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r5893 r5896 299 299 300 300 /// send a message using a link descriptor, delivers it to the base overlay class 301 seqnum_t BaseOverlay::send( OverlayMsg* message, LinkDescriptor* ld , bool ignore_down ) {301 seqnum_t BaseOverlay::send( OverlayMsg* message, LinkDescriptor* ldr, bool ignore_down ) { 302 302 // check if null 303 if (ld == NULL) {303 if (ldr == NULL) { 304 304 logging_error("Can not send message to " << message->getDestinationAddress()); 305 305 return -1; … … 307 307 308 308 // check if up 309 if (!ld ->up && !ignore_down) {310 logging_error("Can not send message. Link not up:" << ld );309 if (!ldr->up && !ignore_down) { 310 logging_error("Can not send message. Link not up:" << ldr ); 311 311 return -1; 312 312 } 313 LinkDescriptor* ld = NULL; 313 314 314 315 // handle relayed link 315 if (ld ->relayed) {316 if (ldr->relayed) { 316 317 logging_debug("send(): Resolving direct link for relayed link to " 317 << ld ->remoteNode);318 ld = getRelayLinkTo( ld ->remoteNode );318 << ldr->remoteNode); 319 ld = getRelayLinkTo( ldr->remoteNode ); 319 320 if (ld==NULL) { 320 LinkID lnk = overlayInterface->getNextLinkId(ld ->remoteNode);321 LinkID lnk = overlayInterface->getNextLinkId(ldr->remoteNode); 321 322 if (!lnk.isUnspecified()) 322 323 ld = getDescriptor(lnk);
Note:
See TracChangeset
for help on using the changeset viewer.