Changeset 6786 for source/ariba/overlay/messages/DHTMessage.h
 Timestamp:
 Nov 2, 2009, 1:31:19 AM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

source/ariba/overlay/messages/DHTMessage.h
r6266 r6786 62 62 X && ttl; 63 63 64 // std::cout << "1" << std::endl; 65 64 66 // key serialization 65 uint16_t key_length = key. getLength();67 uint16_t key_length = key.isUnspecified() ? 0 : key.getLength(); 66 68 X && key_length; 67 69 if (X.isDeserializer()) key.setLength( key_length ); 68 X && key; 70 71 // std::cout << "2  " << key_length << std::endl; 72 X && this>key; 73 // std::cout << "2b" << std::endl; 69 74 70 75 // store number of values … … 72 77 X && num_values; 73 78 79 // std::cout << "3" << std::endl; 80 74 81 // value serialization 75 82 for (size_t i=0; i<num_values; i++) { 76 Data value = values[i]; 77 uint16_t value_length = value.getLength(); 83 // std::cout << "4" << std::endl; 84 Data value; 85 if (X.isSerializer()) value = values[i]; 86 uint16_t value_length = value.isUnspecified() ? 0 : value.getLength(); 78 87 X && value_length; 88 // std::cout << "5" << std::endl; 79 89 if (X.isDeserializer()) value.setLength( value_length ); 80 90 X && value; 91 // std::cout << "6" << std::endl; 81 92 if (X.isDeserializer()) values.push_back(value); 82 93 }
Note: See TracChangeset
for help on using the changeset viewer.