size and pieceSize fields

This commit is contained in:
Zlatin Balevsky
2018-07-04 14:21:52 +01:00
parent 8b6d8e3dc9
commit f70f045f49

View File

@@ -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.
* 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