Streaming and prop. 144 minor updates

This commit is contained in:
zzz
2020-05-01 11:15:12 +00:00
parent 8d6a79cac5
commit d28e6393ed
2 changed files with 32 additions and 23 deletions

View File

@@ -3,8 +3,8 @@ Streaming Library Specification
===============================
.. meta::
:category: Protocols
:lastupdated: February 2019
:accuratefor: 0.9.39
:lastupdated: May 2020
:accuratefor: 0.9.46
.. contents::
@@ -59,7 +59,12 @@ Protocol Specification
Packet Format
-------------
The format of a single packet in the streaming protocol is:
The format of a single packet in the streaming protocol is shown below.
The minimum header size, without NACKs or option data, is 22 bytes.
There is no length field in the streaming protocol.
Framing is provided by the lower layers - I2CP and I2NP.
.. raw:: html
@@ -69,15 +74,17 @@ The format of a single packet in the streaming protocol is:
+----+----+----+----+----+----+----+----+
| sequence Num | ack Through |
+----+----+----+----+----+----+----+----+
| nc | NACKs ...
| nc | nc*4 bytes of NACKs (optional)
+----+----+----+----+----+----+----+----+
| rd | flags | opt size| opt data
+----+----+----+----+----+----+----+----+
... |
... (optional, see below) |
+----+----+----+----+----+----+----+----+
| payload ...
+----+----+----+-//
sendStreamId :: 4 byte `Integer`
Random number selected by the packet recipient before sending
the first SYN reply packet and constant for the life of the