Skip to content

Commit 1b5c110

Browse files
committed
Specify uvarint length prefix
1 parent 6442799 commit 1b5c110

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datagrams/datagrams.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ 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
53+
the related application protocol ID with a [uvarint] length prefix after
5454
negotiating 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
@@ -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)