KDECore
k3resolver.h
Go to the documentation of this file.
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
KResolverResults results() const
Retrieves the results of this resolution.
Definition k3resolver.cpp:504
QString serviceName() const
The service name to which the resolution was/is to be performed.
Definition k3resolver.cpp:330
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
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
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
virtual void virtual_hook(int id, void *data)
Standard hack to add virtuals later.
Definition k3resolver.cpp:1051
Definition kaboutdata.h:33
Definition k3resolver.h:41
static void setError(QAbstractSocket *socket, QAbstractSocket::SocketError error, const QString &errorString)
Definition ksocketfactory.cpp:44
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-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.