querytypes.hxx

来自「这是国外的resip协议栈」· HXX 代码 · 共 56 行

HXX
56
字号
#ifndef RESIP_QUERY_TYPES_HXX#define RESIP_QUERY_TYPES_HXX#include "rutil/HeapInstanceCounter.hxx"#include "rutil/compat.hxx"#include "rutil/Socket.hxx"#include "rutil/BaseException.hxx"#include "DnsResourceRecord.hxx"#include "DnsHostRecord.hxx"#include "DnsCnameRecord.hxx"#include "DnsAAAARecord.hxx"#include "DnsSrvRecord.hxx"#include "DnsNaptrRecord.hxx"//'Interface' of the RRType concept// class QueryType// {//   public://       static unsigned short getRRType();//       enum SupportsCName; //does following CNAME apply to this query type// };//!dcm! -- add UnusedChecking(_enum) below;namespace resip{#define defineQueryType(_name, _type, _rrType, _supportsCName, _rfc)    \class RR_##_name                                                        \{                                                                       \   public:                                                              \      RESIP_HeapCount(RR_##_name);                                    \      enum {SupportsCName = _supportsCName};                            \      static unsigned short getRRType();                                \      typedef _type Type;                                               \      static Data getRRTypeName();                                          \};                                                                      \extern RR_##_name q_##_namedefineQueryType(A, DnsHostRecord, 1, true, "RFC 1035");defineQueryType(CNAME, DnsCnameRecord, 5, false, "RFC 1035");#ifdef USE_IPV6defineQueryType(AAAA, DnsAAAARecord, 28, true, "RFC 3596");#endifdefineQueryType(SRV, DnsSrvRecord, 33, true, "RFC 2782");defineQueryType(NAPTR, DnsNaptrRecord, 35, true, "RFC 2915");}#undef defineQueryType#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?