Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
Config.h
浏览该文件的文档.
1// Copyright 2024 libsese
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
19
20#pragma once
21
22#include <cstdint>
23
24namespace sese::net::dns {
25
26static constexpr uint16_t TYPE_A = 1;
27static constexpr uint16_t TYPE_NS = 2;
28static constexpr uint16_t TYPE_CNAME = 5;
29static constexpr uint16_t TYPE_SOA = 6;
30static constexpr uint16_t TYPE_NULL = 10;
31static constexpr uint16_t TYPE_PTR = 12;
32static constexpr uint16_t TYPE_HINFO = 13;
33static constexpr uint16_t TYPE_MINFO = 14;
34static constexpr uint16_t TYPE_MX = 15;
35static constexpr uint16_t TYPE_TXT = 16;
36static constexpr uint16_t TYPE_RP = 17;
37static constexpr uint16_t TYPE_AFSDB = 18;
38static constexpr uint16_t TYPE_X25 = 19;
39static constexpr uint16_t TYPE_ISDN = 20;
40static constexpr uint16_t TYPE_RT = 21;
41static constexpr uint16_t TYPE_AAAA = 28;
42static constexpr uint16_t TYPE_SRV = 33;
43static constexpr uint16_t TYPE_NAPTR = 35;
44static constexpr uint16_t TYPE_CAA = 257;
45
46static constexpr uint16_t CLASS_IN = 1;
47static constexpr uint16_t CLASS_CS = 2;
48static constexpr uint16_t CLASS_CH = 3;
49static constexpr uint16_t CLASS_HS = 4;
50
51}