(59133b16cd3adffc70833bb2b81332c9649fa51e)
#include "qdnslookup_p.h"
#include <qendian.h>
#include <qscopedpointer.h>
#include <qspan.h>
#include <qurl.h>
#include <qvarlengtharray.h>
#include <private/qnativesocketengine_p.h>
#include <private/qtnetwork-config_p.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <errno.h>
#include <resolv.h>
#include <array>
Go to the source code of this file.
|
| QT_REQUIRE_CONFIG (libresolv) |
|
| Q_DECLARE_TYPEINFO (QDnsCachedName, Q_RELOCATABLE_TYPE) |
|
template<typename T> |
void | setNsMap (T &ext, std::enable_if_t< sizeof(T::nsmap) !=0, uint16_t > v) |
|
template<typename T> |
void | setNsMap (T &,...) |
|
template<typename State> |
bool | setIpv6NameServer (State *state, EnableIfIPv6< sizeof(std::declval< State >()._u._ext.nsaddrs) !=0 > addr, quint16 port) |
|
template<typename State> |
bool | setIpv6NameServer (State *, const void *, quint16) |
|
static bool | applyNameServer (res_state state, const QHostAddress &nameserver, quint16 port) |
|
static int | prepareQueryBuffer (res_state state, QueryBuffer &buffer, const char *label, ns_rcode type) |
|
static int | sendStandardDns (QDnsLookupReply *reply, res_state state, QSpan< unsigned char > qbuffer, ReplyBuffer &buffer, const QHostAddress &nameserver, quint16 port) |
|
◆ T_OPT
◆ Cache
typedef QList< QDnsCachedName > Cache = QList<QDnsCachedName> |
◆ EnableIfIPv6
◆ QueryBuffer
◆ ReplyBuffer
◆ applyNameServer()
◆ prepareQueryBuffer()
static int prepareQueryBuffer |
( |
res_state | state, |
|
|
QueryBuffer & | buffer, |
|
|
const char * | label, |
|
|
ns_rcode | type ) |
|
static |
◆ Q_DECLARE_TYPEINFO()
◆ QT_REQUIRE_CONFIG()
QT_REQUIRE_CONFIG |
( |
libresolv | | ) |
|
◆ sendStandardDns()
◆ setIpv6NameServer() [1/2]
◆ setIpv6NameServer() [2/2]
◆ setNsMap() [1/2]
template<typename T>
void setNsMap |
( |
T & | , |
|
|
| ... ) |
◆ setNsMap() [2/2]
template<typename T>
void setNsMap |
( |
T & | ext, |
|
|
std::enable_if_t< sizeof(T::nsmap) !=0, uint16_t > | v ) |
◆ Edns0Record
static constexpr unsigned char Edns0Record |
|
staticconstexpr |
Initial value:= {
0x00,
NOERROR,
0,
0x00, 0x00,
0x00, 0x00,
}
static constexpr qsizetype PreallocatedSize
Definition at line 39 of file qdnslookup_unix.cpp.
◆ QueryBufferSize
Initial value:=
HFIXEDSZ + QFIXEDSZ + MAXCDNAME + 1 +
sizeof(
Edns0Record)
static constexpr unsigned char Edns0Record[]
Definition at line 50 of file qdnslookup_unix.cpp.