Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdnslookup_unix.cpp File Reference

(6d47110b50e7888980951a7c048932fed69c0229)

#include "qdnslookup_p.h"
#include <qendian.h>
#include <qrandom.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>
Include dependency graph for qdnslookup_unix.cpp:

Go to the source code of this file.

Macros

#define T_OPT   ns_t_opt

Typedefs

using ReplyBuffer = QDnsLookupRunnable::ReplyBuffer
using QueryBuffer = std::array<unsigned char, (QueryBufferSize + 15) / 16 * 16>
using Cache = QList<QDnsCachedName>

Functions

 Q_DECLARE_TYPEINFO (QDnsCachedName, Q_RELOCATABLE_TYPE)

Variables

static constexpr unsigned char Edns0Record []
static constexpr qsizetype QueryBufferSize

Macro Definition Documentation

◆ T_OPT

#define T_OPT   ns_t_opt

Definition at line 42 of file qdnslookup_unix.cpp.

Typedef Documentation

◆ Cache

typedef QList< QDnsCachedName > Cache = QList<QDnsCachedName>

Definition at line 75 of file qdnslookup_unix.cpp.

◆ QueryBuffer

typedef std::array< unsigned char,(QueryBufferSize+15)/16 *16 > QueryBuffer = std::array<unsigned char, (QueryBufferSize + 15) / 16 * 16>

Definition at line 64 of file qdnslookup_unix.cpp.

◆ ReplyBuffer

Function Documentation

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QDnsCachedName ,
Q_RELOCATABLE_TYPE  )

Variable Documentation

◆ Edns0Record

constexpr unsigned char Edns0Record
staticconstexpr
Initial value:
= {
0x00,
T_OPT >> 8, T_OPT & 0xff,
NOERROR,
0,
0x00, 0x00,
0x00, 0x00,
}
#define T_OPT

Definition at line 51 of file qdnslookup_unix.cpp.

◆ QueryBufferSize

constexpr qsizetype QueryBufferSize
staticconstexpr
Initial value:
=
HFIXEDSZ + QFIXEDSZ + MAXCDNAME + 1 + sizeof(Edns0Record)
static constexpr unsigned char Edns0Record[]

Definition at line 62 of file qdnslookup_unix.cpp.