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

mDNS: emit ToSwarm::NewExternalAddrOfPeer #5104

Open
thomaseizinger opened this issue Jan 21, 2024 · 7 comments · May be fixed by #5179
Open

mDNS: emit ToSwarm::NewExternalAddrOfPeer #5104

thomaseizinger opened this issue Jan 21, 2024 · 7 comments · May be fixed by #5179

Comments

@thomaseizinger
Copy link
Contributor

thomaseizinger commented Jan 21, 2024

Description

With #4371 merged, we have the foundation of #4302 implemented.

libp2p-mdns needs to be extended to emit this new event whenever it discovers a new address via mDNS.

Motivation

Other behaviours should be able to learn the addresses discovered by mDNS.

Current Implementation

Only mDNS knows about its discovered addresses.

Are you planning to do it yourself in a pull request ?

No

@thomaseizinger thomaseizinger changed the title kad: emit ToSwarm::NewExternalAddrOfPeer mDNS: emit ToSwarm::NewExternalAddrOfPeer Jan 21, 2024
@1010adigupta
Copy link

would like to work on this

@justcode740
Copy link

would like to take this one once previous one time out. @thomaseizinger , unsure the policy here.

@thomaseizinger
Copy link
Contributor Author

Feel free to start! :)

I've not heard from @1010adigupta so far.

@justcode740
Copy link

Feel free to start! :)

I've not heard from @1010adigupta so far.

ah, ok, just afraid there's some duplicated work done.

@1010adigupta
Copy link

You can go for it, I got busy with some other stuff, didn't got time for this :)

@1010adigupta 1010adigupta removed their assignment Feb 19, 2024
@justcode740
Copy link

@thomaseizinger hey i have a question, isn't the mDNS service already inform Swarm when a new peer discovered? https://github.com/libp2p/rust-libp2p/blob/master/protocols/mdns/src/behaviour.rs#L351, what need to change here?

@justcode740 justcode740 linked a pull request Feb 21, 2024 that will close this issue
4 tasks
@thomaseizinger
Copy link
Contributor Author

It emits an mDNS specific event that the user has to react to manually. The idea of the new event is that it is shared with other behaviours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants