diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-08 09:23:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-08 09:23:47 +0000 |
commit | 539be627c009c2f13da19d6ae847168c1f5d496e (patch) | |
tree | 78814fdb491c52349f793af5898858a56e32117a /src/fs/fs.h | |
parent | 941c7ee262792114da1811cf4404b04550e071b1 (diff) | |
download | gnunet-539be627c009c2f13da19d6ae847168c1f5d496e.tar.gz gnunet-539be627c009c2f13da19d6ae847168c1f5d496e.zip |
-LRN: my experimental block download time measurer. The results
can be found there - [1].
[1] http://lrn.no-ip.info/other/gnunet_download_tie.log
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r-- | src/fs/fs.h | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h index cd39522bc..059b8920d 100644 --- a/src/fs/fs.h +++ b/src/fs/fs.h | |||
@@ -267,7 +267,7 @@ struct SearchMessage | |||
267 | * Response from FS service with a result for a previous FS search. | 267 | * Response from FS service with a result for a previous FS search. |
268 | * Note that queries for DBLOCKS and IBLOCKS that have received a | 268 | * Note that queries for DBLOCKS and IBLOCKS that have received a |
269 | * single response are considered done. This message is transmitted | 269 | * single response are considered done. This message is transmitted |
270 | * between peers as well as between the service and a client. | 270 | * between peers. |
271 | */ | 271 | */ |
272 | struct PutMessage | 272 | struct PutMessage |
273 | { | 273 | { |
@@ -290,6 +290,40 @@ struct PutMessage | |||
290 | /* this is followed by the actual encrypted content */ | 290 | /* this is followed by the actual encrypted content */ |
291 | 291 | ||
292 | }; | 292 | }; |
293 | |||
294 | /** | ||
295 | * Response from FS service with a result for a previous FS search. | ||
296 | * Note that queries for DBLOCKS and IBLOCKS that have received a | ||
297 | * single response are considered done. This message is transmitted | ||
298 | * between the service and a client. | ||
299 | */ | ||
300 | struct ClientPutMessage | ||
301 | { | ||
302 | |||
303 | /** | ||
304 | * Message type will be GNUNET_MESSAGE_TYPE_FS_PUT. | ||
305 | */ | ||
306 | struct GNUNET_MessageHeader header; | ||
307 | |||
308 | /** | ||
309 | * Type of the block (in big endian). Should never be zero. | ||
310 | */ | ||
311 | uint32_t type GNUNET_PACKED; | ||
312 | |||
313 | /** | ||
314 | * When does this result expire? | ||
315 | */ | ||
316 | struct GNUNET_TIME_AbsoluteNBO expiration; | ||
317 | |||
318 | /** | ||
319 | * When was the last time we've tried to download this block? | ||
320 | * (FOREVER if unknown/not relevant) | ||
321 | */ | ||
322 | struct GNUNET_TIME_AbsoluteNBO last_transmission; | ||
323 | |||
324 | /* this is followed by the actual encrypted content */ | ||
325 | |||
326 | }; | ||
293 | GNUNET_NETWORK_STRUCT_END | 327 | GNUNET_NETWORK_STRUCT_END |
294 | 328 | ||
295 | 329 | ||