KDECore
k3resolver.cpp
Go to the documentation of this file.
634# ifdef Q_OS_SOLARIS // Solaris uses a 4 argument getprotobynumber_r which returns struct *protoent or NULL
693# ifdef Q_OS_SOLARIS // Solaris uses a 4 argument getprotobyname_r which returns struct *protoent or NULL
754# ifdef Q_OS_SOLARIS // Solaris uses a 4 argument getprotobyname_r which returns struct *protoent or NULL
810# ifdef Q_OS_SOLARIS // Solaris uses a 5 argument getservbyname_r which returns struct *servent or NULL
866# ifdef Q_OS_SOLARIS // Solaris uses a 5 argument getservbyname_r which returns struct *servent or NULL
926# ifdef Q_OS_SOLARIS // Solaris uses a 5 argument getservbyport_r which returns struct *servent or NULL
1002 KResolverResults results = resolve(QString::fromLocal8Bit(name), QString::fromLatin1("0"), CanonName);
static KResolverManager * manager() KDE_NO_EXPORT
Definition: k3resolvermanager.cpp:318
QWaitCondition notifyWaiters
Definition: k3resolver_p.h:168
void enqueue(KNetwork::KResolver *obj, RequestData *requestor)
Definition: k3resolvermanager.cpp:650
void dequeue(KNetwork::KResolver *obj)
Definition: k3resolvermanager.cpp:827
@ ResolutionCompleted
Definition: k3resolver_p.h:160
int protocol() const
Retrieves the protocol associated with this entry.
Definition: k3resolver.cpp:171
KSocketAddress address() const
Retrieves the socket address associated with this entry.
Definition: k3resolver.cpp:135
int socketType() const
Retrieves the socket type associated with this entry.
Definition: k3resolver.cpp:165
quint16 length() const
Retrieves the length of the socket address structure.
Definition: k3resolver.cpp:141
int family() const
Retrieves the family associated with this socket address.
Definition: k3resolver.cpp:147
KResolverEntry & operator=(const KResolverEntry &other)
Assignment operator.
Definition: k3resolver.cpp:177
QString canonicalName() const
Retrieves the canonical name associated with this entry, if there is any.
Definition: k3resolver.cpp:153
QByteArray encodedName() const
Retrieves the encoded domain name associated with this entry, if there is any.
Definition: k3resolver.cpp:159
Definition: k3resolver_p.h:102
void setAddress(const QString &host, const QString &service)
Sets the new nodename and service name.
Definition: k3resolver.cpp:260
QString serviceName() const
The service name to which the resolution was performed.
Definition: k3resolver.cpp:254
int error() const
Retrieves the error code associated with this resolution.
Definition: k3resolver.cpp:229
KResolverResults & operator=(const KResolverResults &other)
Assignment operator.
Definition: k3resolver.cpp:217
virtual void virtual_hook(int id, void *data)
Standard hack to add virtuals later.
Definition: k3resolver.cpp:267
QString nodeName() const
The nodename to which the resolution was performed.
Definition: k3resolver.cpp:248
void setAddress(const QString &node, const QString &service)
Sets both the host and the service names.
Definition: k3resolver.cpp:360
KResolverResults results() const
Retrieves the results of this resolution.
Definition: k3resolver.cpp:504
QString nodeName() const
The nodename to which the resolution was/is to be performed.
Definition: k3resolver.cpp:324
QString serviceName() const
The service name to which the resolution was/is to be performed.
Definition: k3resolver.cpp:330
void setProtocol(int protonum, const char *name=0L)
Sets the protocol we want.
Definition: k3resolver.cpp:405
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
bool isRunning() const
Returns true if this object is currently running.
Definition: k3resolver.cpp:318
int systemError() const
Retrieve the associated system error code in this object.
Definition: k3resolver.cpp:307
QString errorString() const
Returns the textual representation of the error in this object.
Definition: k3resolver.cpp:312
static int servicePort(const char *servname, const char *protoname)
Resolves a service name to its port number.
Definition: k3resolver.cpp:785
static bool resolveAsync(QObject *userObj, const char *userSlot, const QString &host, const QString &service, int flags=0, int families=KResolver::InternetFamily)
Start an asynchronous name resolution.
Definition: k3resolver.cpp:594
static int protocolNumber(const char *protoname)
Resolves a protocol name to its number.
Definition: k3resolver.cpp:728
static KResolverResults resolve(const QString &host, const QString &service, int flags=0, int families=KResolver::InternetFamily)
Resolve the nodename and service name synchronously.
Definition: k3resolver.cpp:582
void setServiceName(const QString &service)
Sets the service name to be resolved.
Definition: k3resolver.cpp:348
static QList< QByteArray > protocolName(int protonum)
Resolves a protocol number to its names.
Definition: k3resolver.cpp:608
void finished(const KNetwork::KResolverResults &results)
This signal is emitted whenever the resolution is finished, one way or another (success or failure).
static QString normalizeDomain(const QString &domain)
Normalise a domain name.
Definition: k3resolver.cpp:1046
void setNodeName(const QString &nodename)
Sets the nodename for the resolution.
Definition: k3resolver.cpp:336
virtual void virtual_hook(int id, void *data)
Standard hack to add virtuals later.
Definition: k3resolver.cpp:1051
Definition: kaboutdata.h:33
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
#define I18N_NOOP(x)
I18N_NOOP marks a string to be translated without translating it.
Definition: klocalizedstring.h:51
#define I18N_NOOP2(comment, x)
If the string is too ambiguous to be translated well to a non-english language, use this instead of I...
Definition: klocalizedstring.h:72
Definition: k3resolver.h:48
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
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.