LocalDiscoveryRequest class
Configuration for a discovery session.
Constructors
-
LocalDiscoveryRequest({LocalDiscoveryMode mode = LocalDiscoveryMode.snapshot, Set<
LocalDiscoveryProtocol> protocols = const {LocalDiscoveryProtocol.mdns, LocalDiscoveryProtocol.dnsSd}, Set<String> serviceTypes = const <String>{}, Set<String> ssdpSearchTargets = const <String>{}, Set<String> wsDiscoveryTypes = const <String>{}, Duration duration = const Duration(seconds: 8), Duration resolveTimeout = const Duration(seconds: 3), Duration metadataTimeout = const Duration(seconds: 3), Duration lostDeviceGracePeriod = const Duration(seconds: 10), bool resolveServices = true, bool fetchUpnpDescriptions = false, bool includeIpv4 = true, bool includeIpv6 = true, bool includeLoopback = false, bool includeLinkLocal = true, bool includeVpnInterfaces = false, bool includeCellularInterfaces = false, bool includePeerToPeer = false, bool deduplicateResults = true, bool classifyDevices = true, bool monitorNetworkChanges = true, MetadataSecurityPolicy metadataSecurityPolicy = MetadataSecurityPolicy.defaultPolicy, int maxDevices = 100, int maxServices = 500, SafePortProbeConfig? safePortProbe, HostDiscoveryConfig? hostDiscovery, DeviceFilter? filter, Map<String, Object?> metadata = const <String, Object?>{}}) -
const
Properties
- classifyDevices → bool
-
Whether to classify devices.
final
- deduplicateResults → bool
-
Whether to deduplicate results.
final
- duration → Duration
-
The maximum duration of a snapshot discovery.
final
- fetchUpnpDescriptions → bool
-
Whether to fetch UPnP device descriptions.
final
- filter → DeviceFilter?
-
Optional device filter.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostDiscovery → HostDiscoveryConfig?
-
Configuration for host discovery via neighbor table and reachability probing.
final
- includeCellularInterfaces → bool
-
Whether to include cellular interfaces.
final
- includeIpv4 → bool
-
Whether to include IPv4 addresses.
final
- includeIpv6 → bool
-
Whether to include IPv6 addresses.
final
- includeLinkLocal → bool
-
Whether to include link-local addresses.
final
- includeLoopback → bool
-
Whether to include loopback interfaces.
final
- includePeerToPeer → bool
-
Whether to include peer-to-peer interfaces.
final
- includeVpnInterfaces → bool
-
Whether to include VPN interfaces.
final
- lostDeviceGracePeriod → Duration
-
The grace period before a device is considered lost.
final
- maxDevices → int
-
Maximum number of devices retained by a session.
final
- maxServices → int
-
Maximum number of services retained by a session.
final
-
metadata
→ Map<
String, Object?> -
Additional metadata for this request.
final
- metadataSecurityPolicy → MetadataSecurityPolicy
-
Security limits applied to UPnP description downloads and XML parsing.
final
- metadataTimeout → Duration
-
The timeout for fetching metadata.
final
- mode → LocalDiscoveryMode
-
The mode of this discovery session.
final
- monitorNetworkChanges → bool
-
Whether to monitor network changes.
final
-
protocols
→ Set<
LocalDiscoveryProtocol> -
The protocols to use for discovery.
final
- resolveServices → bool
-
Whether to resolve discovered services.
final
- resolveTimeout → Duration
-
The timeout for resolving a service.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- safePortProbe → SafePortProbeConfig?
-
Configuration for safe TCP port probing.
final
-
serviceTypes
→ Set<
String> -
The service types to browse for (e.g.,
_http._tcp).final -
ssdpSearchTargets
→ Set<
String> -
The SSDP search targets to use.
final
-
wsDiscoveryTypes
→ Set<
String> -
Reserved WS-Discovery types.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → void - Validates this request.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited