mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-14 02:21:21 +00:00
Adds support for handling interface changes to mdns behaviour. (#1830)
* mdns: handle address changes. * Update examples. * Use async-io. * Fix tokio-chat. * Address review comments. * Update if-watch. * Poll interfaces correctly. * Use socket2 and remove wasm-time. * Update if-watch. * Update versions and changelogs. * Further changelog updates. Co-authored-by: Roman Borschel <romanb@users.noreply.github.com> Co-authored-by: Roman S. Borschel <roman@parity.io>
This commit is contained in:
@ -35,12 +35,10 @@ const SERVICE_NAME: &[u8] = b"_p2p._udp.local";
|
||||
/// Hardcoded name of the service used for DNS-SD.
|
||||
const META_QUERY_SERVICE: &[u8] = b"_services._dns-sd._udp.local";
|
||||
|
||||
#[cfg(feature = "async-std")]
|
||||
pub use self::{behaviour::Mdns, service::MdnsService};
|
||||
#[cfg(feature = "tokio")]
|
||||
pub use self::{behaviour::TokioMdns, service::TokioMdnsService};
|
||||
|
||||
pub use self::behaviour::MdnsEvent;
|
||||
pub use crate::{
|
||||
behaviour::{Mdns, MdnsEvent},
|
||||
service::MdnsService,
|
||||
};
|
||||
|
||||
mod behaviour;
|
||||
mod dns;
|
||||
|
Reference in New Issue
Block a user