lsd0004

LSD0004: R5N Distributed Hash Table
Log | Files | Refs

commit dac2075e4879a495fe2ec4bb6d5167a28dabfa62
parent 9b6f4c2dd2faf637acc225eb17dbe1bb870310bd
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Wed, 29 Dec 2021 12:50:43 +0100

update API

Diffstat:
Mdraft-schanzen-r5n.xml | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/draft-schanzen-r5n.xml b/draft-schanzen-r5n.xml @@ -227,9 +227,7 @@ Connectivity | |Underlay| |Underlay| The GET procedure is defined as follows: </t> <artwork name="" type="" align="left" alt=""><![CDATA[ -GET(key[, options]) -> RESULTS as List - or -GET(key[, options], callbackFunction) +GET(Key[, RouteOptions][, XQuery]) -> RESULTS as List ]]></artwork> <t> The procedure takes two arguments. The first argument is the query @@ -256,8 +254,9 @@ GET(key[, options], callbackFunction) </dd> </dl> <t> - The procedure either returns a list of results or allows the caller - to provide a callback function which is called for any result + As the time it takes for results to arrive may vary an implementation + may either return a list of results after a timeout or allow the + caller to provide a callback function which is called for any result received from the DHT until the procedure is cancelled. </t> </section> @@ -267,13 +266,14 @@ GET(key[, options], callbackFunction) The PUT procedure is defined as follows: </t> <artwork name="" type="" align="left" alt=""><![CDATA[ -PUT(key[, options], BLOCK) +PUT(Key, Block[, RouteOptions]) ]]></artwork> <t> - The procedure takes three arguments. The first argument is the query - key and is mandatory. The PUT procedure may also allow the caller - to specifiy put options. The third argument is the payload data which - is to be stored under the provided put key. + The procedure takes two mandatory arguments. + The first argument is the query + key under which the Block is to be stored. + The PUT procedure may also allow the caller + to specifiy put options. </t> </section> </section>