Index: pkg/mdns/lib/src/constants.dart |
diff --git a/pkg/mdns/lib/src/constants.dart b/pkg/mdns/lib/src/constants.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1fa52c53e41896e18aae4f67809fd85ae13f9096 |
--- /dev/null |
+++ b/pkg/mdns/lib/src/constants.dart |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+library mdns.src.constants; |
+ |
+import 'dart:io'; |
+ |
+InternetAddress mDNSAddress = new InternetAddress('224.0.0.251'); |
karlklose
2015/10/28 10:14:30
'mDnsAddress'
Søren Gjesse
2015/10/28 11:36:57
Done.
|
+const int mDNSPort = 5353; |
karlklose
2015/10/28 10:14:30
'mDnsPort'
Søren Gjesse
2015/10/28 11:36:57
Done.
|
+ |
+const int idOffset = 0; |
+const int flagsOffset = 2; |
+const int qdcountOffset = 4; |
+const int ancountOffset = 6; |
+const int nscountOffset = 8; |
+const int arcountOffset = 10; |
+ |
+const int headerSize = 12; |
+ |
+const int responseFlags = 0x8400; |
+ |
+const int ipV4AddressType = 0x0001; |
+const int ipV4Class = 0x8001; |
+const int ipV6AddressType = 0x001c; |
+const int ipV6Class = 0x8001; |