Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pluggable transports #1

Open
RangerMauve opened this issue Sep 18, 2018 · 5 comments
Open

Pluggable transports #1

RangerMauve opened this issue Sep 18, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@RangerMauve
Copy link

TCP and UTP are great, but it should be easy to add more transport types. This will be really useful for seamlessly adding the ability to route your traffic through mixnets like Tor or I2P.

  • Support an API for adding transports
  • Tor?
  • I2P?
  • libp2p?

What should a transport be able to do?

  • connect(port, host)
  • listen(port)
  • get data to announce on the DHT?
@pfrazee
Copy link
Contributor

pfrazee commented Sep 18, 2018

I think before committing work to pluggability, we should think through how many transports could really be added this way. If the answer is less than, like, five, then we may be better off just building in those transports and making them option flags. Pluggability adds interface complexity by being more abstract, and is harder to implement overall.

@RangerMauve
Copy link
Author

I haven't used this yet, but node-i2p has a very similar API surface to net. Maybe just shoving that in and seeing if it works would be a good start?

@pfrazee pfrazee added the enhancement New feature or request label Sep 27, 2018
@m-onz
Copy link

m-onz commented Oct 26, 2018

  • 1 vote for WebRTC

@noaho
Copy link

noaho commented Jul 7, 2019

Some clients are also likely to be behind public wifi that has a firewall that only allows local DNS traffic, http, https. It would be great if some of the discovery servers / DHT could work over http/https, so these clients can still discover other http/https endpoints.

Supporting HTTPS connections could also allow hyperswarm traffic to blend in and work across even the most restrictive corporate firewalls, because corporates can’t ban public cloud traffic eg AWS/Azure without breaking their own systems.

@RangerMauve
Copy link
Author

@Karissa, @pvh and I were thinking it'd be cool if we could eventually integrate discovery-swarm-stream servers into the discovery layer for cases when you need a proxy to the p2p network. But that's probably a ways away and likely won't be within hyperswarm directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants