daemon: record the deferred for a request in the queue, too
[hippotat] / PROTOCOL
CommitLineData
3fba9787
IJ
1Server maintains a queue of outbound packets for each user
2
ca732796 3Packets which are older than the applicable max_queue_time are discarded
3fba9787 4
ca732796 5Each incoming request to the server takes up to max_batch_down bytes
3fba9787
IJ
6from the queue and returns them as the POST response body payload
7
ca732796 8Each incoming request contains up to max_batch_up bytes of payload.
3fba9787
IJ
9It's a multipart/form-data.
10
11Authentication: for now, plaintext password
12
3fba9787
IJ
13Routing assistance: none needed; secnet polypath will DTRT
14
ca732796
IJ
15Client form parameters (multipart/form-data):
16 m metadata, newline-separated list (text file) of
17 client ip address (textual)
18 password
19 target_requests_outstanding
eb6eb974 20 http_timeout
7b07f0b5 21 d data (SLIP format, with SLIP_ESC and `-' swapped)
1672ded0
IJ
22
23
24
25Future nonce-based authentication:
26
27server keeps big nonce counter for each client
28meaning is:
29 nonce counter is most recent nonce client has sent
30also server keeps bitmap of the previous ?64 nonces,
31 whether client has sent them
32
33client picks.... xxx