]> git.saurik.com Git - apt.git/blame - apt-pkg/contrib/srvrec.h
add GetSrvRecord helper to apt-pkg/contrib/srvrec.{cc,h}
[apt.git] / apt-pkg / contrib / srvrec.h
CommitLineData
f106fecc
MV
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3/* ######################################################################
4
5 SRV record support
6
7 ##################################################################### */
8 /*}}}*/
9#ifndef SRVREC_H
10#define SRVREC_H
11
12#include <arpa/nameser.h>
13#include <vector>
14#include <string>
15
16class SrvRec
17{
18 public:
19 std::string target;
20 u_int16_t priority;
21 u_int16_t weight;
22 u_int16_t port;
23
24 // see rfc-2782
25 //int random;
26};
27
28bool GetSrvRecords(std::string name, std::vector<SrvRec> &Result);
29
30#endif