Changeset 12060 for source/ariba/SideportListener.cpp
- Timestamp:
- Jun 19, 2013, 11:05:49 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/SideportListener.cpp
r7468 r12060 41 41 #include "ariba/overlay/BaseOverlay.h" 42 42 #include "ariba/overlay/LinkDescriptor.h" 43 #include "ariba/utility/addressing /endpoint_set.hpp"43 #include "ariba/utility/addressing2/tcpip_endpoint.hpp" 44 44 45 45 using ariba::overlay::LinkDescriptor; … … 130 130 if( overlay == NULL ) return (Protocol)ret; 131 131 132 using namespace ariba::addressing;133 134 132 LinkDescriptor* link = NULL; 135 133 BOOST_FOREACH( LinkDescriptor* lnk, overlay->links ){ … … 147 145 if(bclink.isUnspecified() || bclink.remoteLocator == NULL) return (Protocol)ret; 148 146 149 const address_v*locator = bclink.remoteLocator;147 addressing2::EndpointPtr locator = bclink.remoteLocator; 150 148 151 if( locator->instanceof<tcpip_endpoint>() ){ 152 tcpip_endpoint tcpip = *locator; 153 154 if( tcpip.address().is_v4() || tcpip.address().is_v4_mapped() ){ 149 if( locator->get_category() == addressing2::endpoint_category::TCPIP ) 150 { 151 boost::shared_ptr<addressing2::tcpip_endpoint> endp = 152 boost::dynamic_pointer_cast<addressing2::tcpip_endpoint>(locator); 153 154 if( endp->to_asio().address().is_v4() ) 155 { 155 156 ret = SideportListener::ipv4; 156 }else if( tcpip.address().is_v6() ){157 }else { 157 158 ret = SideportListener::ipv6; 158 159 } 159 160 160 }else if( locator-> instanceof<rfcomm_endpoint>()){161 }else if( locator->get_category() == addressing2::endpoint_category::BLUETOOTH ){ 161 162 ret = SideportListener::rfcomm; 162 163 }
Note:
See TracChangeset
for help on using the changeset viewer.