KDELibs4Support
k3resolver.cpp
625 # ifdef Q_OS_SOLARIS // Solaris uses a 4 argument getprotobynumber_r which returns struct *protoent or NULL
683 # ifdef Q_OS_SOLARIS // Solaris uses a 4 argument getprotobyname_r which returns struct *protoent or NULL
743 # ifdef Q_OS_SOLARIS // Solaris uses a 4 argument getprotobyname_r which returns struct *protoent or NULL
799 # ifdef Q_OS_SOLARIS // Solaris uses a 5 argument getservbyname_r which returns struct *servent or NULL
855 # ifdef Q_OS_SOLARIS // Solaris uses a 5 argument getservbyname_r which returns struct *servent or NULL
914 # ifdef Q_OS_SOLARIS // Solaris uses a 5 argument getservbyport_r which returns struct *servent or NULL
986 KResolverResults results = resolve(QString::fromLocal8Bit(name), QString::fromLatin1("0"), CanonName);
void finished(const KNetwork::KResolverResults &results)
This signal is emitted whenever the resolution is finished, one way or another (success or failure)...
QString canonicalName() const
Retrieves the canonical name associated with this entry, if there is any.
Definition: k3resolver.cpp:150
void start()
KResolverResults & operator=(const KResolverResults &other)
Assignment operator.
Definition: k3resolver.cpp:214
#define I18N_NOOP2(context, text)
QString serviceName() const
The service name to which the resolution was/is to be performed.
Definition: k3resolver.cpp:328
QList< T > & operator=(const QList< T > &other)
QEvent::Type type() const const
QString fromAce(const QByteArray &domain)
KResolverEntry & operator=(const KResolverEntry &other)
Assignment operator.
Definition: k3resolver.cpp:174
void clear()
static QString normalizeDomain(const QString &domain)
Normalise a domain name.
Definition: k3resolver.cpp:1033
Definition: k3resolver.h:49
bool isEmpty() const const
QByteArray encodedName() const
Retrieves the encoded domain name associated with this entry, if there is any.
Definition: k3resolver.cpp:156
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:573
static QString localHostName()
Returns this machine's local hostname.
Definition: k3resolver.cpp:948
QString errorString() const
Returns the textual representation of the error in this object.
Definition: k3resolver.cpp:310
int protocol() const
Retrieves the protocol associated with this entry.
Definition: k3resolver.cpp:168
void setServiceName(const QString &service)
Sets the service name to be resolved.
Definition: k3resolver.cpp:345
KResolverResults results() const
Retrieves the results of this resolution.
Definition: k3resolver.cpp:491
virtual bool event(QEvent *e)
void resize(int size)
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
int indexOf(char ch, int from) const const
QString fromLocal8Bit(const char *str, int size)
void append(const T &value)
int systemError() const
Retrieve the associated system error code in this object.
Definition: k3resolver.cpp:305
QByteArray toAce(const QString &domain)
bool isEmpty() const const
void setObjectName(const QString &name)
bool isEmpty() const const
#define I18N_NOOP(text)
QCoreApplication * instance()
void deleteLater()
T & first()
Definition: k4aboutdata.h:38
static QList< QByteArray > protocolName(int protonum)
Resolves a protocol number to its names.
Definition: k3resolver.cpp:599
KSocketAddress address() const
Retrieves the socket address associated with this entry.
Definition: k3resolver.cpp:132
virtual void virtual_hook(int id, void *data)
Standard hack to add virtuals later.
Definition: k3resolver.cpp:1038
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:585
QCA_EXPORT void init()
quint16 length() const
Retrieves the length of the socket address structure.
Definition: k3resolver.cpp:138
void setNodeName(const QString &nodename)
Sets the nodename for the resolution.
Definition: k3resolver.cpp:334
QString i18n(const char *text, const TYPE &arg...)
virtual void virtual_hook(int id, void *data)
Standard hack to add virtuals later.
Definition: k3resolver.cpp:264
QByteArray toLatin1() const const
int socketType() const
Retrieves the socket type associated with this entry.
Definition: k3resolver.cpp:162
void setProtocol(int protonum, const char *name=nullptr)
Sets the protocol we want.
Definition: k3resolver.cpp:398
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:1018
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
void setAddress(const QString &host, const QString &service)
Sets the new nodename and service name.
Definition: k3resolver.cpp:257
void setIdnWhitelist(const QStringList &list)
int family() const
Retrieves the family associated with this socket address.
Definition: k3resolver.cpp:144
static int servicePort(const char *servname, const char *protoname)
Resolves a service name to its port number.
Definition: k3resolver.cpp:774
QString serviceName() const
The service name to which the resolution was performed.
Definition: k3resolver.cpp:251
char * data()
QString fromLatin1(const char *str, int size)
QString nodeName() const
The nodename to which the resolution was/is to be performed.
Definition: k3resolver.cpp:322
bool isRunning() const
Returns true if this object is currently running.
Definition: k3resolver.cpp:316
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const const
QString nodeName() const
The nodename to which the resolution was performed.
Definition: k3resolver.cpp:245
qint64 elapsed() const const
static int protocolNumber(const char *protoname)
Resolves a protocol name to its number.
Definition: k3resolver.cpp:717
int error() const
Retrieves the error code associated with this resolution.
Definition: k3resolver.cpp:226
void setAddress(const QString &node, const QString &service)
Sets both the host and the service names.
Definition: k3resolver.cpp:356
static QByteArray domainToAscii(const QString &unicodeDomain)
Returns the domain name in an ASCII Compatible Encoding form, suitable for DNS lookups.
Definition: k3resolver.cpp:1012
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Mar 8 2021 22:58:07 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Mar 8 2021 22:58:07 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.