rtci-mdns 0.1.0

Sans-I/O mDNS (RFC 6762) querier and responder, as used for WebRTC mDNS ICE candidates
Documentation
rtci-mdns-0.1.0 has been yanked.

rtci-mdns

Multicast DNS for WebRTC: a querier that resolves .local names (the mDNS host candidates browsers send) and a responder that publishes local names, with probing, announcing, answering, defending a name and goodbyes, a cache bounded by TTL, and one rate limit over everything sent.

Specifications

  • RFC 6762, Multicast DNS
  • draft-ietf-mmusic-mdns-ice-candidates, mDNS names for ICE host candidates

Clause-by-clause status, with the test that proves each clause: rfc6762, draft-ietf-mmusic-mdns-ice-candidates.

Use

Mdns::new(now, MdnsConfig) creates the state machine; query_now starts a query and poll_event reports the answer (MdnsEvent). MulticastSocket builds a UDP socket joined to the mDNS group for applications that want one. The root crate (rtci) uses it for mDNS candidates. The crate documentation has query and responder examples.

Sans-I/O

The protocol is a sansio::Protocol: datagrams in through handle_read, out through poll_write, deadlines through poll_timeout / handle_timeout. Only MulticastSocket, an optional helper, touches the operating system. The crate does no I/O and reads no clock: every call that depends on time takes an Instant from the caller.

Licence

Licensed under either of the MIT licence or the Apache License, Version 2.0, at your option.

This crate is part of the rtci workspace, which descends from webrtc-rs/rtc and is developed independently; FORK.md lists what it carries over upstream. Upstream's licence and copyright notices are retained.