mirror of
https://github.com/vacp2p/specs.git
synced 2026-01-08 23:08:09 -05:00
fix: corrections based on review
This commit is contained in:
committed by
Steven Allen
parent
11a66185b8
commit
6cedbbb937
@@ -52,13 +52,11 @@ 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. 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.
|
||||
To open a new stream, first allocate a new stream ID. 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
|
||||
a stream ID after closing a stream may result in undefined behaviour.
|
||||
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 a stream ID after closing a stream may result in undefined behaviour.
|
||||
|
||||
The party that opens a stream is called the stream initiator. This is used for numbering the streams as well as identifying whether the message comes from a channel opened locally or remotely. Thus, the stream initiator always uses even flags and stream receivers uses odd flags.
|
||||
The party that opens a stream is called the stream initiator. This is used to identify whether the message comes from a channel opened locally or remotely. Thus, the stream initiator always uses even flags and stream receivers uses odd flags.
|
||||
|
||||
### Writing to a stream
|
||||
|
||||
|
||||
Reference in New Issue
Block a user