dnssrvrecord.hxx

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

HXX
55
字号
#ifndef RESIP_DNS_SRV_RECORD#define RESIP_DNS_SRV_RECORD#include "rutil/Data.hxx"#include "rutil/Socket.hxx"#include "rutil/BaseException.hxx"#include "rutil/dns/DnsResourceRecord.hxx"namespace resip{class Data;class DnsResourceRecord;class RROverlay;class DnsSrvRecord : public DnsResourceRecord{   public:      class SrvException : public BaseException      {         public:            SrvException(const Data& msg, const Data& file, const int line)               : BaseException(msg, file, line)             {            }                        const char* name() const { return "SrvException"; }      };      DnsSrvRecord(const RROverlay&);      ~DnsSrvRecord() {}      // accessors.      int priority() const { return mPriority; }      int& priority() { return mPriority; }      int weight() const { return mWeight; }      int port() const { return mPort; }      const Data& target() const { return mTarget; }      const Data& name() const { return mName; }      bool isSameValue(const Data& value) const;      std::ostream& dump(std::ostream& strm) const;         private:      int mPriority;      int mWeight;      int mPort;      Data mTarget; // domain name of the target host.      Data mName;};}#endif

⌨️ 快捷键说明

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