You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 16, 2025. It is now read-only.
Discovery should be a monoidal datatype instead of a trait, and yield an asynchronere stream of (PeerId, SocketAddr) pairs. One challenge is to deduplicate this stream, as mDNS will discover the same link local responders with every query.
Implementation wise, the crate situation isn’t great: the mdns crate looks ok, but only provides a client, libmdns only the responder side (with a futures 1 interface, which isn’t great). Others either seem to have native dependencies, or are in some way non-standard. A generic, high quality DNS library doesn’t seem to exist. Potentially the best strategy would be to steal the DNS types from libp2p, and inline them.