nsd 1.0.1 nsd: ^1.0.1 copied to clipboard
A Flutter plugin for network service discovery and registration (aka NSD / DNS-SD / Bonjour / mDNS).
nsd #
A Flutter plugin for Network Service Discovery (NSD).
Service Discovery #
import 'package:nsd/nsd.dart';
final discovery = await startDiscovery('_http._tcp');
discovery.addListener(() {
// discovery.services contains discovered services
});
// ...
await stopDiscovery(discovery);
Service Registration #
import 'package:nsd/nsd.dart';
final registration = await register(
const Service(name: 'Foo', type: '_http._tcp', port: 56000));
// ...
await unregister(registration);