nsd 1.0.0 nsd: ^1.0.0 copied to clipboard
Flutter nsd plugin (parent).
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);