OpenZWave Library
1.5.0
cpp
src
platform
DNS.h
Go to the documentation of this file.
1
//-----------------------------------------------------------------------------
2
//
3
// DNS.h
4
//
5
// Cross-platform DNS Operations
6
//
7
// Copyright (c) 2015 Justin Hammond <justin@dynam.ac>
8
// All rights reserved.
9
//
10
// SOFTWARE NOTICE AND LICENSE
11
//
12
// This file is part of OpenZWave.
13
//
14
// OpenZWave is free software: you can redistribute it and/or modify
15
// it under the terms of the GNU Lesser General Public License as published
16
// by the Free Software Foundation, either version 3 of the License,
17
// or (at your option) any later version.
18
//
19
// OpenZWave is distributed in the hope that it will be useful,
20
// but WITHOUT ANY WARRANTY; without even the implied warranty of
21
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
// GNU Lesser General Public License for more details.
23
//
24
// You should have received a copy of the GNU Lesser General Public License
25
// along with OpenZWave. If not, see <http://www.gnu.org/licenses/>.
26
//
27
//-----------------------------------------------------------------------------
28
#ifndef _DNS_H
29
#define _DNS_H
30
31
#include <stdarg.h>
32
#include <string>
33
#include "
Defs.h
"
34
#include "
platform/Log.h
"
35
36
37
namespace
OpenZWave
38
{
39
class
DNSImpl;
40
44
enum
DNSError
45
{
46
DNSError_None
= 0,
47
DNSError_NotFound
,
48
DNSError_DomainError
,
49
DNSError_InternalError
50
};
51
52
56
class
DNS
57
{
58
public
:
59
DNS
();
60
~DNS
();
71
bool
LookupTxT
(
string
lookup,
string
&result);
72
DNSError
status
;
73
private
:
74
DNSImpl *m_pImpl;
75
};
76
}
77
78
#endif
OpenZWave::DNSError_None
Definition:
DNS.h:46
OpenZWave
Definition:
Bitfield.h:34
OpenZWave::DNS::~DNS
~DNS()
Definition:
DNS.cpp:48
OpenZWave::DNSError_InternalError
Definition:
DNS.h:49
OpenZWave::DNS::DNS
DNS()
Definition:
DNS.cpp:42
OpenZWave::DNSError_DomainError
Definition:
DNS.h:48
OpenZWave::DNS::status
DNSError status
Definition:
DNS.h:72
OpenZWave::DNS::LookupTxT
bool LookupTxT(string lookup, string &result)
Starts a DNS lookup for a TXT record.
Definition:
DNS.cpp:55
Log.h
Defs.h
OpenZWave::DNSError_NotFound
Definition:
DNS.h:47
OpenZWave::DNS
Implements platform-independent DNS lookup Operations.
Definition:
DNS.h:56
OpenZWave::DNSError
DNSError
Return codes for DNS lookups.
Definition:
DNS.h:44
Generated on Mon Jul 31 2017 18:24:04 for OpenZWave Library by
1.8.13