Skip to content

Commit 8dac785

Browse files
committed
Specify uvarint length prefix
1 parent 6442799 commit 8dac785

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

datagrams/datagrams.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Each datagram flow MUST be associated with a control stream. A datagram flow is
5050
defined as a logical flow of datagrams related to a specific application
5151
protocol. A control stream is a QUIC bidirectional stream that has negotiated
5252
the libp2p datagram control stream protocol ID `/dg/1`. The initiator MUST send
53-
the related application protocol ID related to the datagram flow after
54-
negotiating the control stream. The control stream MUST stay open for the
53+
the related application protocol ID with a [uvarint] prefix after negotiating
54+
the control stream. The control stream MUST stay open for the
5555
duration of the datagram flow. Implementation MAY create the control stream and
5656
start sending datagrams at once. There is currently no other use for the control
5757
stream besides negotiating the application protocol ID. Receipt of a QUIC
@@ -98,3 +98,4 @@ This is currently not specified.
9898

9999
[RFC 9221]: https://www.rfc-editor.org/rfc/rfc9221
100100
[QUIC varint]: https://www.rfc-editor.org/rfc/rfc9000.html#name-variable-length-integer-enc
101+
[uvarint]: https://github.com/multiformats/unsigned-varint

0 commit comments

Comments
 (0)