Changeset 6835 for source/ariba/overlay/messages
- Timestamp:
- Nov 5, 2009, 10:18:18 AM (15 years ago)
- Location:
- source/ariba/overlay/messages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/messages/DHTMessage.cpp
r6796 r6835 11 11 this->key.setLength(0); 12 12 this->ttl =0 ; 13 this->replace = false; 13 14 } 14 15 … … 18 19 this->key = key.clone(); 19 20 this->ttl =0 ; 21 this->replace = false; 20 22 } 21 23 … … 26 28 this->values.push_back( value.clone() ); 27 29 this->ttl =0 ; 30 this->replace = false; 28 31 } 29 32 … … 32 35 BOOST_FOREACH(const Data value, values ) 33 36 this->values.push_back( value.clone() ); 37 this->replace = false; 34 38 } 35 39 -
source/ariba/overlay/messages/DHTMessage.h
r6796 r6835 44 44 } 45 45 46 void setReplace( bool replace ) { 47 this->replace = replace; 48 } 49 50 bool doReplace() const { 51 return replace; 52 } 53 46 54 /// return alles values for the key 47 55 const vector<Data>& getValues() const { … … 52 60 NodeID hash; 53 61 uint16_t ttl; 62 bool replace; 54 63 Data key; 55 64 vector<Data> values; … … 60 69 sznBeginDefault( ariba::overlay::DHTMessage, X ) { 61 70 71 // serialize flags 72 X && replace && cI(0,7); 73 74 // serialize tll 62 75 X && ttl; 63 76
Note:
See TracChangeset
for help on using the changeset viewer.