Changeset 5876 for source/ariba/overlay/BaseOverlay.cpp
- Timestamp:
- Aug 12, 2009, 12:04:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r5871 r5876 211 211 } 212 212 213 /// shows the current link state 213 214 void BaseOverlay::showLinks() { 214 215 int i=0; … … 220 221 logging_info("----------------------------------------------"); 221 222 } 223 224 /// compares two arbitrary links to the same node 225 int BaseOverlay::compare( const LinkID& lhs, const LinkID& rhs ) { 226 LinkDescriptor* lhsld = getDescriptor(lhs); 227 LinkDescriptor* rhsld = getDescriptor(rhs); 228 if (lhsld==NULL || rhsld==NULL 229 || !lhsld->up || !rhsld->up 230 || lhsld->remoteNode != rhsld->remoteNode) return -1; 231 232 if ((lhsld->remoteLink^lhsld->overlayId)<(rhsld->remoteLink^lhsld->overlayId) ) 233 return -1; 234 235 return 1; 236 } 237 222 238 223 239 // internal message delivery ---------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.