#include <winsock2.h>
#include "qhostinfo_p.h"
#include "private/qnativesocketengine_p.h"
#include <ws2tcpip.h>
#include <private/qsystemlibrary_p.h>
#include <qurl.h>
#include <qmutex.h>
Go to the source code of this file.
◆ NI_MAXHOST
◆ QT_SOCKLEN_T
◆ freeaddrinfoProto
typedef int(__stdcall * freeaddrinfoProto) (qt_addrinfo *) |
◆ getaddrinfoProto
◆ getnameinfoProto
typedef int(__stdcall * getnameinfoProto) (const sockaddr *, QT_SOCKLEN_T, const char *, DWORD, const char *, DWORD, int) |
◆ resolveLibrary()
static void resolveLibrary |
( |
| ) |
|
|
static |
Definition at line 81 of file qhostinfo_win.cpp.
Referenced by translateWSAError().
85 static bool triedResolve =
false;
89 #if !defined(Q_OS_WINCE)
static freeaddrinfoProto local_freeaddrinfo
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int(__stdcall * getaddrinfoProto)(const char *, const char *, const qt_addrinfo *, qt_addrinfo **)
static getnameinfoProto local_getnameinfo
int(__stdcall * freeaddrinfoProto)(qt_addrinfo *)
static getaddrinfoProto local_getaddrinfo
int(__stdcall * getnameinfoProto)(const sockaddr *, QT_SOCKLEN_T, const char *, DWORD, const char *, DWORD, int)
◆ translateWSAError()
static void translateWSAError |
( |
int |
error, |
|
|
QHostInfo * |
results |
|
) |
| |
|
static |
Definition at line 108 of file qhostinfo_win.cpp.
111 case WSAHOST_NOT_FOUND:
void setErrorString(const QString &errorString)
Sets the human readable description of the error that occurred to str if the lookup failed...
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
void setError(HostInfoError error)
Sets the error type of this QHostInfo to error.
◆ local_freeaddrinfo
◆ local_getaddrinfo
◆ local_getnameinfo