KDECore
k3resolverstandardworkers.cpp
Go to the documentation of this file.
114 QStringList filelist = KGlobal::dirs()->findAllResources("config", QLatin1String("ipv6blacklist"));
699 // qDebug("QNoResolveWorker::addUnix(): adding Unix socket for %s", pathname.toLocal8Bit().data());
virtual bool preprocess()
This function gets called during pre processing for this class and you must override it.
Definition: k3resolverstandardworkers.cpp:169
static void loadBlacklist()
Definition: k3resolverstandardworkers.cpp:111
static bool isBlacklisted(const QString &)
Definition: k3resolverstandardworkers.cpp:146
virtual bool run()
This is the function that should be overridden in derived classes.
Definition: k3resolverstandardworkers.cpp:180
static void init()
Definition: k3resolverstandardworkers.cpp:97
static QStringList blacklist
Definition: k3resolverstandardworkers_p.h:52
QList< KNetwork::KResolverResults * > resultList
Definition: k3resolverstandardworkers_p.h:72
virtual bool preprocess()
This function gets called during pre processing for this class and you must override it.
Definition: k3resolverstandardworkers.cpp:813
bool resolveScopeId()
Definition: k3resolverstandardworkers.cpp:600
QByteArray m_encodedName
Definition: k3resolverstandardworkers_p.h:69
KNetwork::KResolver::ErrorCodes addUnix()
Definition: k3resolverstandardworkers.cpp:676
virtual bool run()
This is the function that should be overridden in derived classes.
Definition: k3resolverstandardworkers.cpp:861
virtual bool postprocess()
This function gets called during post processing for this class.
Definition: k3resolverstandardworkers.cpp:919
virtual ~KStandardWorker()
Definition: k3resolverstandardworkers.cpp:555
bool resolveNumerically()
Definition: k3resolverstandardworkers.cpp:711
bool sanityCheck()
Definition: k3resolverstandardworkers.cpp:560
bool resolveService()
Definition: k3resolverstandardworkers.cpp:626
KInetSocketAddress & setScopeId(int scopeid)
Sets the scope id for this IPv6 object.
Definition: k3socketaddress.cpp:882
int ipVersion() const
Returns the IP version of the address this object holds.
Definition: k3socketaddress.cpp:736
KInetSocketAddress & setHost(const KIpAddress &addr)
Sets the IP address to the given raw address.
Definition: k3socketaddress.cpp:773
static const KIpAddress anyhostV6
the any host or undefined address in IPv6 (::)
Definition: k3socketaddress.h:401
static const KIpAddress anyhostV4
the any host or undefined address in IPv4 (0.0.0.0)
Definition: k3socketaddress.h:396
int family() const
Retrieves the family associated with this socket address.
Definition: k3resolver.cpp:147
int error() const
Retrieves the error code associated with this resolution.
Definition: k3resolver.cpp:229
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
QByteArray protocolName() const
gets the protocol name, if applicable
Definition: k3resolverworkerbase.cpp:92
void finished()
Call this function to indicate that processing has finished.
Definition: k3resolverworkerbase.cpp:100
QString nodeName() const
This is the hostname to be looked for.
Definition: k3resolverworkerbase.cpp:50
bool enqueue(KResolver *other)
Enqueue the given resolver for post-processing.
Definition: k3resolverworkerbase.cpp:110
static void registerNewWorker(KResolverWorkerFactoryBase *factory)
Wrapper call to register workers.
Definition: k3resolverworkerbase.cpp:148
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 QByteArray domainToAscii(const QString &unicodeDomain)
Returns the domain name in an ASCII Compatible Encoding form, suitable for DNS lookups.
Definition: k3resolver.cpp:1026
static int servicePort(const char *servname, const char *protoname)
Resolves a service name to its port number.
Definition: k3resolver.cpp:785
static QList< QByteArray > protocolName(int protonum)
Resolves a protocol number to its names.
Definition: k3resolver.cpp:608
quint16 length() const
Returns the length of this socket address structure.
Definition: k3socketaddress.cpp:473
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
#define mask
static void setError(QAbstractSocket *socket, QAbstractSocket::SocketError error, const QString &errorString)
Definition: ksocketfactory.cpp:44
Definition: k3resolver.h:48
void initStandardWorkers() KDE_NO_EXPORT
Definition: k3resolverstandardworkers.cpp:1038
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
Definition: netsupp.h:173
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.