multicast_dns
0.3.3+1Dart package for performing mDNS queries (e.g. Bonjour, Avahi).
Readme
Multicast DNS package
Based on RFC 6762 Multicast DNS.
A Dart package to do service discovery over multicast DNS (mDNS), Bonjour, and Avahi.
Usage
The example demonstrates how
to use the MDnsClient Dart class in your code.
Changelog
0.3.3+1
- Updates metadata for move to https://github.com/flutter/core-packages.
- Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
0.3.3
- Adds an optional error callback for
MDnsClient::startto prevent uncaught exceptions.
0.3.2+8
- Fixes stack overflows ocurring during the parsing of domain names in MDNS messages.
- Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
0.3.2+7
- Optimized Socket Binding: Always bind to 0.0.0.0 for simplicity and efficiency.
- Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
0.3.2+6
- Improves links in README.md.
0.3.2+5
- Updates
PendingRequestto be abase classfor Dart 3.0 compatibility. - Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
0.3.2+4
- Adds pub topics to package metadata.
- Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
0.3.2+3
- Removes use of
runtimeType.toString(). - Updates minimum SDK version to Flutter 3.0.
0.3.2+2
- Fixes lints warnings.
0.3.2+1
- Migrates from
ui.hash*toObject.hash*.
0.3.2
- Updates package description.
- Make [MDnsClient.start] idempotent.
0.3.1
- Close IPv6 sockets on [MDnsClient.stop].
0.3.0+1
- Removed redundant link in README.md file.
0.3.0
- Migrate package to null safety.
0.2.2
- Fixes parsing of TXT records. Continues parsing on non-utf8 strings.
0.2.1
- Fixes the handling of packets containing non-utf8 strings.
0.2.0
- Allow configuration of the port and address the mdns query is performed on.
0.1.1
- Fixes flutter/issue/31854 where
decodeMDnsResponseadvanced to incorrect code points and ignored some records.
0.1.0
- Initial Open Source release.
- Migrates the dartino-sdk's mDNS client to Dart 2.0 and Flutter's analysis rules
- Breaks from original Dartino code, as it does not use native libraries for macOS and overhauls the
ResourceRecordclass.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add multicast_dnspubspec.yaml
name: multicast_dns
description: Dart package for performing mDNS queries (e.g. Bonjour, Avahi).
repository: https://github.com/flutter/core-packages/tree/main/packages/multicast_dns
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+multicast_dns%22
version: 0.3.3+1
environment:
sdk: ^3.10.0
dependencies:
meta: ^1.3.0
dev_dependencies:
test: "^1.16.5"
topics:
- bonjour
- mdns
- network
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.1.0 | On demand | Download | 82933477…3f3e42 |
| 0.1.0+1 | On demand | Download | 599131e1…c50713 |
| 0.1.1 | On demand | Download | 8523f94f…6a8ebf |
| 0.2.0 | On demand | Download | 7a5e4da2…d64592 |
| 0.2.1 | On demand | Download | 203932ba…79e60c |
| 0.2.2 | On demand | Download | 02658215…b1859d |
| 0.3.0 | On demand | Download | 3d46e7cc…ae4302 |
| 0.3.0+1 | On demand | Download | 8bdeeafe…e6b8a6 |
| 0.3.1 | On demand | Download | 2ed85caa…f2c959 |
| 0.3.2 | On demand | Download | 3f574260…4701cd |
| 0.3.2+1 | On demand | Download | e77b21b8…130bcf |
| 0.3.2+2 | On demand | Download | 27960961…366c17 |
| 0.3.2+3 | On demand | Download | 80e54aba…786591 |
| 0.3.2+4 | On demand | Download | f4fd1c33…609379 |
| 0.3.2+5 | On demand | Download | 73fcb8e0…baefa8 |
| 0.3.2+6 | On demand | Download | 316cc47a…14e296 |
| 0.3.2+7 | On demand | Download | 982c4cc4…550b99 |
| 0.3.2+8 | On demand | Download | 0a568c84…fde813 |
| 0.3.3 | On demand | Download | de72ada5…b5b1eb |
| 0.3.3+1 | Cached · Upstream SHA-256 matched | Download | 134668a9…24987b |
Dependencies
meta "^1.3.0"