Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: pkg/mdns/lib/mdns.dart

Issue 1432973002: Update the mDNS command line tools in the mdns package (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/mdns/bin/mdns-sd.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library mdns; 5 library mdns;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:typed_data'; 10 import 'dart:typed_data';
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 /// 51 ///
52 /// The [name] must be the fully qualified name (that is including 52 /// The [name] must be the fully qualified name (that is including
53 /// the domain '.local'); for example `printer.local`. 53 /// the domain '.local'); for example `printer.local`.
54 /// 54 ///
55 /// The stream is closed after the timeout is reached. 55 /// The stream is closed after the timeout is reached.
56 Stream<ResourceRecord> lookup( 56 Stream<ResourceRecord> lookup(
57 int type, 57 int type,
58 String name, 58 String name,
59 {Duration timeout: const Duration(seconds: 5)}); 59 {Duration timeout: const Duration(seconds: 5)});
60 } 60 }
61
62 // Simple standalone test.
63 Future main(List<String> args) async {
64 var client = new MDnsClient();
65 await client.start();
66 ResourceRecord resource = await client.lookup(RRType.A, args[0]).first;
67 print(address);
68 client.stop();
69 }
OLDNEW
« no previous file with comments | « pkg/mdns/bin/mdns-sd.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698