Changeset 5786


Ignore:
Timestamp:
Aug 7, 2009, 2:10:14 PM (15 years ago)
Author:
Christoph Mayer
Message:
 
Location:
source/ariba
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/SideportListener.cpp

    r5785 r5786  
    122122
    123123        if( locator->instanceof<tcpip_endpoint>() ){
    124 
    125124                tcpip_endpoint tcpip = *locator;
    126                 ret |= SideportListener::tcp;
    127125
    128126                if( tcpip.address().is_v4() || tcpip.address().is_v4_mapped() ){
    129                         ret |= SideportListener::ipv4;
     127                        ret = SideportListener::ipv4;
    130128                }else if( tcpip.address().is_v6() ){
    131                         ret |= SideportListener::ipv6;
    132                         cout << "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx is v6" << std::endl;
     129                        ret = SideportListener::ipv6;
    133130                }
    134131
    135132        }else if( locator->instanceof<rfcomm_endpoint>() ){
    136                 ret |= SideportListener::rfcomm;
     133                ret = SideportListener::rfcomm;
    137134        }
    138135
  • source/ariba/SideportListener.h

    r5436 r5786  
    166166                rfcomm = 0x1,
    167167                ipv4 = 0x2,
    168                 ipv6 = 0x4,
    169                 udp = 0x8,
    170                 tcp = 0x16,
     168                ipv6 = 0x3
    171169        };
    172170
Note: See TracChangeset for help on using the changeset viewer.