blob: 583907706b59e7950c63e7b20d4f69e6f0a7aca8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
/* ######################################################################
SRV record support
##################################################################### */
/*}}}*/
#ifndef SRVREC_H
#define SRVREC_H
#include <arpa/nameser.h>
#include <vector>
#include <string>
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<SrvRec> &Result);
#endif
|