From f70f045f4910394b0cfdd3452ff608a221483a4b Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Wed, 4 Jul 2018 14:21:52 +0100 Subject: [PATCH] size and pieceSize fields --- doc/wire-protocol.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/wire-protocol.md b/doc/wire-protocol.md index 98f80718..1396513f 100644 --- a/doc/wire-protocol.md +++ b/doc/wire-protocol.md @@ -106,11 +106,15 @@ Search results are sent in "Result" type message over an I2P datagram, uncompres { name: "File name 1", infohash: "asdfasdf...", + size: 12345, + pieceSize: 17, altlocs: [ "b64.1", "b64.2", ...] }, { name: "File name 2", infohash: "asdfasdf...", + size: 12345, + pieceSize: 17 altlocs: [ "b64.3", "b64.4", ... ] }, ... @@ -120,4 +124,5 @@ Search results are sent in "Result" type message over an I2P datagram, uncompres * The "uuid" field must match the uuid of the "Search" message which triggered this search result. * The "address" field is the I2P Destination listening to incoming HTTP requests that can serve the file -* The "altlocs" list contains list of alternate locations in b64 format that may also have the file. \ No newline at end of file +* The "altlocs" list contains list of alternate locations in b64 format that may also have the file. +* The "pieceSize" field is the size of the each individual file piece (except possibly the last) in powers of 2 \ No newline at end of file