Giter Club home page Giter Club logo

Comments (2)

raulk avatar raulk commented on July 21, 2024

Hey @Jorropo! Thanks for spearheading the work in getting the uTP transport up and running with the latests versions of go-libp2p. Very much appreciated!

The multirepo vs. monorepo discussion does crop up frequently. We continuously take steps toward a more cohesive DX; namely in the last months we consolidated interfaces into go-libp2p-core from 12+ repos. Now we're consolidating issue tracking into the top-level go-libp2p repo.

Re: the concrete issue here, we can't make transports resolve "bind all" and magic addresses, because that's the wrong layer and that would leak concerns. In other words, we'd be making the OSI layer 4 deal with concerns of OSI layer 3.

That's why there's this inversion of control in place. Transports listen on a single logical address, which when resolving it may unpack into several physical addresses.

If you genuinely want a transport to listen on multiple logical addresses, you'd instantiate that transport more than once, each with a different listen address.

Would you mind explaining how the current handling of bind all addresses is causing trouble in go-libp2p-utp-transport?

from go-libp2p-core.

Jorropo avatar Jorropo commented on July 21, 2024

@raulk currently there is none in go-utp-transport, returning /ip4/0.0.0.0/udp/<port>/utp works well and get resolved, I have a problem with the i2p-sam transport I want to make after the utp one.

The problem is i2p have 2 way to encode address, garlic32 and garlic64 (the first one is a hash of the second, to use it you will have to do a lookup in the i2p dht).
So yes in this case we can do the same things, we do with ip and return garlic64 and resolving later elsewhere to get the garlic32 version, but that not plug and play and I don't think i2p is gonna be only case requiring that and I think its better to just let transports manage that by them self to be more future proof (or maybe not for special known case (such as ip or ether)).

from go-libp2p-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.