mirror of
https://github.com/vacp2p/specs.git
synced 2026-01-09 23:37:55 -05:00
relay: update multicodec and multiaddr
This commit is contained in:
@@ -40,17 +40,15 @@ The transport is the means of *establishing* and *accepting* connections,
|
|||||||
and the swarm protocol is the means to *relaying* connections.
|
and the swarm protocol is the means to *relaying* connections.
|
||||||
|
|
||||||
```
|
```
|
||||||
+-------+ /ip4/.../tcp/.../ws/ipfs/QmRelay +---------+ /ip4/.../tcp/.../ipfs/QmTwo +-------+
|
+-------+ /ip4/.../tcp/.../ws/p2p/QmRelay +---------+ /ip4/.../tcp/.../p2p/QmTwo +-------+
|
||||||
| QmOne | <------------------------------------> | QmRelay | <-----------------------------------> | QmTwo |
|
| QmOne | <------------------------------------> | QmRelay | <-----------------------------------> | QmTwo |
|
||||||
+-------+ (/ipfs/relay/circuit multistream) +---------+ (/ipfs/relay/circuit multistream) +-------+
|
+-------+ (/libp2p/relay/circuit multistream) +---------+ (/libp2p/relay/circuit multistream) +-------+
|
||||||
^ +-----+ ^
|
^ +-----+ ^
|
||||||
| | | |
|
| | | |
|
||||||
| /p2p-circuit/QmTwo | | |
|
| /p2p-circuit/QmTwo | | |
|
||||||
+--------------------------------------------+ +-------------------------------------------+
|
+--------------------------------------------+ +-------------------------------------------+
|
||||||
```
|
```
|
||||||
|
|
||||||
TODO: the stream codec should be called `/libp2p/relay/circuit` instead.
|
|
||||||
|
|
||||||
Note: we're using the `/p2p` multiaddr protocol instead of `/ipfs` in this document.
|
Note: we're using the `/p2p` multiaddr protocol instead of `/ipfs` in this document.
|
||||||
`/ipfs` is currently the canonical way of addressing a libp2p or IPFS node,
|
`/ipfs` is currently the canonical way of addressing a libp2p or IPFS node,
|
||||||
but given the growing non-IPFS usage of libp2p, we'll migrate to using `/p2p`.
|
but given the growing non-IPFS usage of libp2p, we'll migrate to using `/p2p`.
|
||||||
|
|||||||
Reference in New Issue
Block a user