Changeset 5151 for source/ariba/communication/modules/transport/protlib
- Timestamp:
- Jul 21, 2009, 1:54:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/communication/modules/transport/protlib/connectionmap.cpp
r5150 r5151 101 101 AssocData* ConnectionMap::lookup(const appladdress& addr) const 102 102 { 103 const_addr2data_it_t hit= addr2data.find(addr); 104 if (hit!=addr2data.end()) return hit->second; 105 else return NULL; 103 // hack: only search for ip addresses! 104 const char* addr_ip = addr.get_ip_str(); 105 for (const_addr2data_it_t::const_iterator i=addr2data.begin(); i!=addr2data.end(); i++) { 106 const appladdress& map_addr = i->first; 107 const char* map_ip = map_addr.get_ip_str(); 108 if (strcmp(map_ip, addr_ip)==0) return i->second; 109 } 110 return NULL; 111 112 // const_addr2data_it_t hit= addr2data.find(addr); 113 // if (hit!=addr2data.end()) return hit->second; 114 // else return NULL; 106 115 } // end lookup 107 116
Note:
See TracChangeset
for help on using the changeset viewer.