From f106fecc1d7d0250d1d76c2ba837dc0c870c5fff Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 20 May 2014 13:15:51 +0200 Subject: add GetSrvRecord helper to apt-pkg/contrib/srvrec.{cc,h} --- apt-pkg/contrib/srvrec.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 apt-pkg/contrib/srvrec.h (limited to 'apt-pkg/contrib/srvrec.h') diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h new file mode 100644 index 000000000..583907706 --- /dev/null +++ b/apt-pkg/contrib/srvrec.h @@ -0,0 +1,30 @@ +// -*- mode: cpp; mode: fold -*- +// Description /*{{{*/ +/* ###################################################################### + + SRV record support + + ##################################################################### */ + /*}}}*/ +#ifndef SRVREC_H +#define SRVREC_H + +#include +#include +#include + +class SrvRec +{ + public: + std::string target; + u_int16_t priority; + u_int16_t weight; + u_int16_t port; + + // see rfc-2782 + //int random; +}; + +bool GetSrvRecords(std::string name, std::vector &Result); + +#endif -- cgit v1.2.3