KDECore
k3resolverstandardworkers.cpp
Go to the documentation of this file.
114 QStringList filelist = KGlobal::dirs()->findAllResources("config", QLatin1String("ipv6blacklist"));
static bool isBlacklisted(const QString &)
Definition: k3resolverstandardworkers.cpp:146
KInetSocketAddress & setScopeId(int scopeid)
Sets the scope id for this IPv6 object.
Definition: k3socketaddress.cpp:882
QString nodeName() const
This is the hostname to be looked for.
Definition: k3resolverworkerbase.cpp:50
virtual bool preprocess()
This function gets called during pre processing for this class and you must override it.
Definition: k3resolverstandardworkers.cpp:813
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
bool sanityCheck()
Definition: k3resolverstandardworkers.cpp:560
KResolverResults results
Derived classes will put their resolved data in this list, or will leave it empty in case of error.
Definition: k3resolverworkerbase.h:128
virtual bool preprocess()
This function gets called during pre processing for this class and you must override it.
Definition: k3resolverstandardworkers.cpp:169
virtual bool postprocess()
This function gets called during post processing for this class.
Definition: k3resolverstandardworkers.cpp:919
static QStringList blacklist
Definition: k3resolverstandardworkers_p.h:52
virtual bool run()
This is the function that should be overridden in derived classes.
Definition: k3resolverstandardworkers.cpp:180
void finished()
Call this function to indicate that processing has finished.
Definition: k3resolverworkerbase.cpp:100
int getaddrinfo(const char *name, const char *serv, const struct addrinfo *hint, struct addrinfo **result)
Definition: netsupp.cpp:784
static QByteArray domainToAscii(const QString &unicodeDomain)
Returns the domain name in an ASCII Compatible Encoding form, suitable for DNS lookups.
Definition: k3resolver.cpp:1026
void initStandardWorkers() KDE_NO_EXPORT
Definition: k3resolverstandardworkers.cpp:1038
QByteArray m_encodedName
Definition: k3resolverstandardworkers_p.h:69
static const KIpAddress anyhostV4
the any host or undefined address in IPv4 (0.0.0.0)
Definition: k3socketaddress.h:396
bool enqueue(KResolver *other)
Enqueue the given resolver for post-processing.
Definition: k3resolverworkerbase.cpp:110
int family() const
Retrieves the family associated with this socket address.
Definition: k3resolver.cpp:147
QByteArray protocolName() const
gets the protocol name, if applicable
Definition: k3resolverworkerbase.cpp:92
KInetSocketAddress & setHost(const KIpAddress &addr)
Sets the IP address to the given raw address.
Definition: k3socketaddress.cpp:773
bool resolveScopeId()
Definition: k3resolverstandardworkers.cpp:600
static QString domainToUnicode(const QByteArray &asciiDomain)
Does the inverse of domainToAscii() and return an Unicode domain name from the given ACE-encoded doma...
Definition: k3resolver.cpp:1032
static void loadBlacklist()
Definition: k3resolverstandardworkers.cpp:111
QList< KNetwork::KResolverResults * > resultList
Definition: k3resolverstandardworkers_p.h:72
static QList< QByteArray > protocolName(int protonum)
Resolves a protocol number to its names.
Definition: k3resolver.cpp:608
int ipVersion() const
Returns the IP version of the address this object holds.
Definition: k3socketaddress.cpp:736
static void init()
Definition: k3resolverstandardworkers.cpp:97
int error() const
Retrieves the error code associated with this resolution.
Definition: k3resolver.cpp:229
virtual bool run()
This is the function that should be overridden in derived classes.
Definition: k3resolverstandardworkers.cpp:861
static void setError(QAbstractSocket *socket, QAbstractSocket::SocketError error, const QString &errorString)
Definition: ksocketfactory.cpp:44
virtual ~KStandardWorker()
Definition: k3resolverstandardworkers.cpp:555
bool resolveNumerically()
Definition: k3resolverstandardworkers.cpp:711
bool resolveService()
Definition: k3resolverstandardworkers.cpp:626
static void registerNewWorker(KResolverWorkerFactoryBase *factory)
Wrapper call to register workers.
Definition: k3resolverworkerbase.cpp:148
KNetwork::KResolver::ErrorCodes addUnix()
Definition: k3resolverstandardworkers.cpp:676
#define mask
QStringList findAllResources(const char *type, const QString &filter=QString(), SearchOptions options=NoSearchOptions) const
Tries to find all resources with the specified type.
Definition: kstandarddirs.cpp:900
quint16 length() const
Returns the length of this socket address structure.
Definition: k3socketaddress.cpp:473
static int servicePort(const char *servname, const char *protoname)
Resolves a service name to its port number.
Definition: k3resolver.cpp:785
Definition: netsupp.h:172
Definition: k3resolver.h:48
static const KIpAddress anyhostV6
the any host or undefined address in IPv6 (::)
Definition: k3socketaddress.h:401
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.