mirror of
https://github.com/vacp2p/specs.git
synced 2026-01-09 15:28:03 -05:00
plaintext: Clarify only handshake messages being framed
Make clear that only the plaintext protocol handshake messages are length prefixed, not the actual user level data send via a negotiated plaintext protocol connection.
This commit is contained in:
@@ -112,9 +112,11 @@ section of the connection establishment spec][conn-spec-protocol-negotiation].
|
||||
|
||||
### Message Framing
|
||||
|
||||
All messages sent over the wire are prefixed with the message length in bytes,
|
||||
encoded as an unsigned variable length integer as defined by the [multiformats
|
||||
unsigned-varint spec][uvarint-spec].
|
||||
All [plaintext protocol specific messages](#messages) sent over the wire are
|
||||
prefixed with the message length in bytes, encoded as an unsigned variable
|
||||
length integer as defined by the [multiformats unsigned-varint
|
||||
spec][uvarint-spec]. Data send via a negotiated plaintext protocol connection is
|
||||
not prefixed with the data length, but send as is.
|
||||
|
||||
### Exchange
|
||||
|
||||
|
||||
Reference in New Issue
Block a user