Changeset 5540 for source/ariba
- Timestamp:
- Jul 31, 2009, 4:39:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/SideportListener.cpp
r5479 r5540 87 87 88 88 BOOST_FOREACH( LinkDescriptor* link, overlay->links ){ 89 if( (!link->localRelay.isUnspecified()) && link->remoteRelay== node && link->up)89 if( link->relay && link->remoteNode == node && link->up) 90 90 return true; 91 91 } … … 98 98 99 99 BOOST_FOREACH( LinkDescriptor* link, overlay->links ){ 100 if( (!link->localRelay.isUnspecified())&& link->localRelay == node && link->up)100 if( link->relay && link->localRelay == node && link->up) 101 101 return true; 102 102 } … … 111 111 using namespace ariba::addressing; 112 112 113 BOOST_FOREACH( LinkDescriptor* link, overlay->links ){ 114 if(link->remoteNode == node){ 115 if(overlay->bc == NULL) continue; 113 LinkDescriptor* link = overlay->getSendDescriptor(node); 114 if (link==NULL) return (Protocol)ret; 116 115 117 118 116 BaseCommunication::LinkDescriptor& bclink = 117 overlay->bc->queryLocalLink(link->communicationId); 119 118 120 if(bclink.isUnspecified()) continue;121 if(bclink.localLocator == NULL) continue;119 if(bclink.isUnspecified()) return (Protocol)ret; 120 if(bclink.localLocator == NULL) return (Protocol)ret; 122 121 123 122 const address_v* locator = bclink.remoteLocator; 124 123 125 124 if( locator->instanceof<tcpip_endpoint>() ){ 126 125 127 128 126 tcpip_endpoint tcpip = *locator; 127 ret |= SideportListener::tcp; 129 128 130 131 129 if( tcpip.address().is_v4() ) 130 ret |= SideportListener::ipv4; 132 131 133 134 132 if( tcpip.address().is_v6() ) 133 ret |= SideportListener::ipv6; 135 134 136 }else if( locator->instanceof<rfcomm_endpoint>() ){ 137 ret |= SideportListener::rfcomm; 138 } 139 } 135 }else if( locator->instanceof<rfcomm_endpoint>() ){ 136 ret |= SideportListener::rfcomm; 140 137 } 141 138
Note:
See TracChangeset
for help on using the changeset viewer.