Skip to content

Commit

Permalink
Merge pull request #295 from mxinden/plaintext-prefix
Browse files Browse the repository at this point in the history
plaintext: Clarify only handshake messages being framed
  • Loading branch information
Stebalien authored Mar 15, 2021
2 parents eb094ac + c1e678b commit 6a8fb7c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plaintext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [handshake 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]. Actual
payloads exchanged once the plaintext handshake has completed are NOT prefixed
with their lengths, but sent as-is.

### Exchange

Expand Down

0 comments on commit 6a8fb7c

Please sign in to comment.