Changeset 6796 for source/ariba/overlay
- Timestamp:
- Nov 2, 2009, 10:39:21 AM (15 years ago)
- Location:
- source/ariba/overlay
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r6786 r6796 66 66 } 67 67 68 ValueEntry( const ValueEntry& value ) : 69 ttl(value.ttl), last_update(value.last_update), 70 last_change(value.last_change), value(value.value.clone()) { 71 72 } 73 68 74 ~ValueEntry() { 69 75 value.release(); -
source/ariba/overlay/messages/DHTMessage.cpp
r6266 r6796 29 29 30 30 DHTMessage::DHTMessage( const Data& key, const vector<Data>& values ) { 31 this->key = key.clone(); 31 32 BOOST_FOREACH(const Data value, values ) 32 33 this->values.push_back( value.clone() ); -
source/ariba/overlay/messages/DHTMessage.h
r6786 r6796 62 62 X && ttl; 63 63 64 // std::cout << "1" << std::endl;65 66 64 // key serialization 67 65 uint16_t key_length = key.isUnspecified() ? 0 : key.getLength(); 68 66 X && key_length; 69 67 if (X.isDeserializer()) key.setLength( key_length ); 70 71 // std::cout << "2 - " << key_length << std::endl;72 68 X && this->key; 73 // std::cout << "2b" << std::endl;74 69 75 70 // store number of values … … 77 72 X && num_values; 78 73 79 // std::cout << "3" << std::endl;80 81 74 // value serialization 82 75 for (size_t i=0; i<num_values; i++) { 83 // std::cout << "4" << std::endl;84 76 Data value; 85 77 if (X.isSerializer()) value = values[i]; 86 78 uint16_t value_length = value.isUnspecified() ? 0 : value.getLength(); 87 79 X && value_length; 88 // std::cout << "5" << std::endl;89 80 if (X.isDeserializer()) value.setLength( value_length ); 90 81 X && value; 91 // std::cout << "6" << std::endl;92 82 if (X.isDeserializer()) values.push_back(value); 93 83 }
Note:
See TracChangeset
for help on using the changeset viewer.