Changeset 6919 for source/ariba/overlay/messages/DHTMessage.cpp
- Timestamp:
- Nov 13, 2009, 1:41:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/messages/DHTMessage.cpp
r6835 r6919 10 10 DHTMessage::DHTMessage() { 11 11 this->key.setLength(0); 12 this->ttl = 0;12 this->ttl = 0; 13 13 this->replace = false; 14 14 } … … 18 18 this->hash = NodeID::sha1( key.getBuffer(), key.getLength() / 8 ); 19 19 this->key = key.clone(); 20 this->ttl = 0;20 this->ttl = 0; 21 21 this->replace = false; 22 22 } … … 26 26 this->hash = NodeID::sha1( key.getBuffer(), key.getLength() / 8 ); 27 27 this->key = key.clone(); 28 this->values.push_back( 29 this->ttl = 0;28 this->values.push_back( value.clone() ); 29 this->ttl = 0; 30 30 this->replace = false; 31 31 } 32 32 33 33 DHTMessage::DHTMessage( const Data& key, const vector<Data>& values ) { 34 this->hash = NodeID::sha1( key.getBuffer(), key.getLength() / 8 ); 34 35 this->key = key.clone(); 35 36 BOOST_FOREACH(const Data value, values ) 36 this->values.push_back( value.clone() ); 37 this->values.push_back( value.clone() ); 38 this->ttl = 0; 37 39 this->replace = false; 38 40 }
Note:
See TracChangeset
for help on using the changeset viewer.