Changeset 5151 for source/ariba/communication
- Timestamp:
- Jul 21, 2009, 1:54:55 PM (15 years ago)
- Location:
- source/ariba/communication
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/communication/BaseCommunication.cpp
r4984 r5151 97 97 IPv4Locator* ipv4locator = dynamic_cast<IPv4Locator*>(*i); 98 98 99 // TODO: which locators can we find to bind to?99 // TODO: which locators are find to bind to? 100 100 // localhost is not too bad, works when testing locally 101 101 // with several instances. the manual override currently -
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 -
source/ariba/communication/modules/transport/tcp/TCPTransport.cpp
r4618 r5151 242 242 //std::cout << "XXXXXXXXXXXXXsending out data using tcp transport: " << data << std::endl; 243 243 244 const_cast<Message*>(message)->dropPayload();245 244 246 245 // prepare netmsg and send it … … 258 257 " to address " + address->toString() << 259 258 ": " + message->toString() ); 259 const_cast<Message*>(message)->dropPayload(); 260 260 261 261 string s = address->toString();
Note:
See TracChangeset
for help on using the changeset viewer.