nsd library

Classes

Discovery
Represents a discovery.
Registration
Represents a registration.
Service
Represents a network service.

Enums

ErrorCause
Indicates the cause of an NsdError.
IpLookupType
Configures IP lookup.
LogTopic
Represents available log topics.
ServiceStatus
Indicates the discovery status of a service.

Functions

disableServiceTypeValidation(bool value) → void
The plugin throws an error if user-specified service types do not match the specifiation:
enableLogging(LogTopic logTopic) → void
Enables logging for the specified topic.
register(Service service) Future<Registration>
Registers a service.
resolve(Service service) Future<Service>
Resolves a service.
startDiscovery(String serviceType, {bool autoResolve = true, IpLookupType ipLookupType = IpLookupType.none}) Future<Discovery>
Starts a discovery for the specified service type.
stopDiscovery(Discovery discovery) Future<void>
Stops the specified discovery.
unregister(Registration registration) Future<void>
Unregisters a service.

Typedefs

ServiceListener = FutureOr<void> Function(Service service, ServiceStatus status)

Exceptions / Errors

NsdError
Represents an error that occurred during an NSD operation.