Changeset 6919 for source/ariba/overlay/messages
- Timestamp:
- Nov 13, 2009, 1:41:34 PM (15 years ago)
- Location:
- source/ariba/overlay/messages
- Files:
-
- 3 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 } -
source/ariba/overlay/messages/DHTMessage.h
r6835 r6919 33 33 34 34 bool hasValues() const { 35 values.size() != 0;35 return values.size() != 0; 36 36 } 37 37 -
source/ariba/overlay/messages/OverlayMsg.h
r6266 r6919 213 213 uint8_t increaseNumHops() { 214 214 hops++; 215 return hops; 215 216 } 216 217
Note:
See TracChangeset
for help on using the changeset viewer.