From 539be627c009c2f13da19d6ae847168c1f5d496e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Jan 2012 09:23:47 +0000 Subject: -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 --- src/fs/fs.h | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'src/fs/fs.h') 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 * Response from FS service with a result for a previous FS search. * Note that queries for DBLOCKS and IBLOCKS that have received a * single response are considered done. This message is transmitted - * between peers as well as between the service and a client. + * between peers. */ struct PutMessage { @@ -289,6 +289,40 @@ struct PutMessage /* this is followed by the actual encrypted content */ +}; + +/** + * Response from FS service with a result for a previous FS search. + * Note that queries for DBLOCKS and IBLOCKS that have received a + * single response are considered done. This message is transmitted + * between the service and a client. + */ +struct ClientPutMessage +{ + + /** + * Message type will be GNUNET_MESSAGE_TYPE_FS_PUT. + */ + struct GNUNET_MessageHeader header; + + /** + * Type of the block (in big endian). Should never be zero. + */ + uint32_t type GNUNET_PACKED; + + /** + * When does this result expire? + */ + struct GNUNET_TIME_AbsoluteNBO expiration; + + /** + * When was the last time we've tried to download this block? + * (FOREVER if unknown/not relevant) + */ + struct GNUNET_TIME_AbsoluteNBO last_transmission; + + /* this is followed by the actual encrypted content */ + }; GNUNET_NETWORK_STRUCT_END -- cgit v1.2.3