Skip to content

Dcutr#1

Merged
canewsin merged 140 commits into
decentnetwork:dcutrfrom
mxinden:dcutr
Nov 21, 2021
Merged

Dcutr#1
canewsin merged 140 commits into
decentnetwork:dcutrfrom
mxinden:dcutr

Conversation

@canewsin

Copy link
Copy Markdown

No description provided.

mxinden added 30 commits April 26, 2021 17:47
This commit adds an implementation for the circuit relay v2 protocol to
be used as a relay server, i.e. it supports incoming HOP requests and
outgoing STOP requests. Future commits will add support for clients,
i.e. outgoing HOP requests and incoming STOP requests.

The existing circuit relay v1 protocol implementation is moved to
protocols/relay/src/v1.
From the multistream-select 1.0 simultaneous open protocol extension
specification:

> In order to support direct connections through NATs with hole
punching, we need to account for simultaneous open. In such cases, there
is no single initiator and responder, but instead both peers act as
initiators. This breaks protocol negotiation in multistream-select,
which assumes a single initator.

> This draft proposes a simple extension to the multistream protocol
negotiation in order to select a single initator when both peers are
acting as such.

See libp2p/specs#196 for details.

This commit implements the above specification, available via
`Version::V1SimOpen`.
@canewsin canewsin merged commit ff9b4b7 into decentnetwork:dcutr Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants