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

Unified Diff: pkg/mdns/lib/src/constants.dart

Issue 1412063015: Improve resource record implementation in the mdns package. (Closed) Base URL: https://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 side-by-side diff with in-line comments
Download patch
Index: pkg/mdns/lib/src/constants.dart
diff --git a/pkg/mdns/lib/src/constants.dart b/pkg/mdns/lib/src/constants.dart
index 8548abcef9d3c092935e45a822937d10b9393a89..a94aa6c01c4c4d50ce5073d9d5345350fbfc42de 100644
--- a/pkg/mdns/lib/src/constants.dart
+++ b/pkg/mdns/lib/src/constants.dart
@@ -21,7 +21,14 @@ const int headerSize = 12;
const int responseFlags = 0x8400;
-const int ipV4AddressType = 0x0001;
-const int ipV4Class = 0x8001;
-const int ipV6AddressType = 0x001c;
-const int ipV6Class = 0x8001;
+class RRType {
+ static const int A = 1;
+ static const int AAAA = 28;
+ static const int PTR = 12;
+ static const int SRV = 33;
+ static const int TXT = 16;
+}
+
+class RRClass {
+ static const int IN = 1;
+}

Powered by Google App Engine
This is Rietveld 408576698