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

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

Issue 1426863003: Add a 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
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
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 file.
4
5 library mdns.src.constants;
6
7 import 'dart:io';
8
9 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.
10 const int mDNSPort = 5353;
karlklose 2015/10/28 10:14:30 'mDnsPort'
Søren Gjesse 2015/10/28 11:36:57 Done.
11
12 const int idOffset = 0;
13 const int flagsOffset = 2;
14 const int qdcountOffset = 4;
15 const int ancountOffset = 6;
16 const int nscountOffset = 8;
17 const int arcountOffset = 10;
18
19 const int headerSize = 12;
20
21 const int responseFlags = 0x8400;
22
23 const int ipV4AddressType = 0x0001;
24 const int ipV4Class = 0x8001;
25 const int ipV6AddressType = 0x001c;
26 const int ipV6Class = 0x8001;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698