1
2
3
4
5 package javax.jmdns.impl.constants;
6
7
8
9
10
11
12 public final class DNSConstants {
13
14
15
16 public static final String MDNS_GROUP = "224.0.0.251";
17 public static final String MDNS_GROUP_IPV6 = "FF02::FB";
18 public static final int MDNS_PORT = Integer.parseInt(System.getProperty("net.mdns.port", "5353"));
19 public static final int DNS_PORT = 53;
20 public static final int DNS_TTL = 60 * 60;
21
22
23 public static final int MAX_MSG_TYPICAL = 1460;
24 public static final int MAX_MSG_ABSOLUTE = 8972;
25
26 public static final int FLAGS_QR_MASK = 0x8000;
27 public static final int FLAGS_QR_QUERY = 0x0000;
28 public static final int FLAGS_QR_RESPONSE = 0x8000;
29
30 public static final int FLAGS_AA = 0x0400;
31 public static final int FLAGS_TC = 0x0200;
32 public static final int FLAGS_RD = 0x0100;
33 public static final int FLAGS_RA = 0x8000;
34
35 public static final int FLAGS_Z = 0x0040;
36 public static final int FLAGS_AD = 0x0020;
37 public static final int FLAGS_CD = 0x0010;
38
39
40
41 public static final int SHARED_QUERY_TIME = 20;
42 public static final int QUERY_WAIT_INTERVAL = 225;
43 public static final int PROBE_WAIT_INTERVAL = 250;
44 public static final int RESPONSE_MIN_WAIT_INTERVAL = 20;
45 public static final int RESPONSE_MAX_WAIT_INTERVAL = 115;
46 public static final int PROBE_CONFLICT_INTERVAL = 1000;
47 public static final int PROBE_THROTTLE_COUNT = 10;
48 public static final int PROBE_THROTTLE_COUNT_INTERVAL = 5000;
49 public static final int ANNOUNCE_WAIT_INTERVAL = 1000;
50 public static final int RECORD_REAPER_INTERVAL = 10000;
51 public static final int RECORD_EXPIRY_DELAY = 1;
52 public static final int KNOWN_ANSWER_TTL = 120;
53 public static final int ANNOUNCED_RENEWAL_TTL_INTERVAL = DNS_TTL * 500;
54
55 public static final long CLOSE_TIMEOUT = ANNOUNCE_WAIT_INTERVAL * 5L;
56 public static final long SERVICE_INFO_TIMEOUT = ANNOUNCE_WAIT_INTERVAL * 6L;
57
58 public static final int NETWORK_CHECK_INTERVAL = 10 * 1000;
59
60 }