Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Networking: mDNS discovery #67

@kim

Description

@kim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions