From 58e5bee8ff2e71004230aa9005bc4804e8b3ffdf Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Wed, 11 Apr 2018 01:49:31 -0600 Subject: [PATCH] fix: use correct id sequence (dialer even/listener odd) --- mplex/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mplex/README.md b/mplex/README.md index 733a3ea..05c592e 100644 --- a/mplex/README.md +++ b/mplex/README.md @@ -52,7 +52,7 @@ necessarily send the first packet, this distinction is just made to make the all ### Opening a new stream -To open a new stream, first allocate a new unique stream ID; the session initiator allocates odd IDs and the session receiver allocates even IDs. Then, send a message with the flag set to `NewStream`, the ID set to the newly +To open a new stream, first allocate a new unique stream ID; the session initiator allocates even IDs and the session receiver allocates odd IDs. Then, send a message with the flag set to `NewStream`, the ID set to the newly allocated stream ID, and the data of the message set to the name of the stream. Stream names are purely for interfaces and are not otherwise considered by the protocol. An empty string may also be used for the stream name, and they may also be repeated (using the same stream name for every stream is valid). Reusing