MdnsDiscovery class

Implementation of mDNS discovery for libp2p

Implemented types

Constructors

MdnsDiscovery.new(Host _host, {String? serviceName, MdnsNotifee? notifee})
Creates a new MdnsDiscovery service

Properties

hashCode int
The hash code for this object.
no setterinherited
notifee MdnsNotifee?
Sets the notifee
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

Advertises a service
override
findPeers(String ns, [List<DiscoveryOption> options = const []]) Future<Stream<AddrInfo>>
Discovers peers providing a service
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
Starts the mDNS discovery service
stop() Future<void>
Stops the mDNS discovery service
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited