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);
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
void finished(const KNetwork::KResolverResults &results)
This signal is emitted whenever the resolution is finished, one way or another (success or failure)...
KResolverResults & operator=(const KResolverResults &other)
Assignment operator.
Definition: k3resolver.cpp:217
KResolverEntry & operator=(const KResolverEntry &other)
Assignment operator.
Definition: k3resolver.cpp:177
QString serviceName() const
The service name to which the resolution was performed.
Definition: k3resolver.cpp:254
static QString normalizeDomain(const QString &domain)
Normalise a domain name.
Definition: k3resolver.cpp:1046
int systemError() const
Retrieve the associated system error code in this object.
Definition: k3resolver.cpp:307
Definition: k3resolver.h:411
quint16 length() const
Retrieves the length of the socket address structure.
Definition: k3resolver.cpp:141
#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
QString canonicalName() const
Retrieves the canonical name associated with this entry, if there is any.
Definition: k3resolver.cpp:153
KResolverResults results() const
Retrieves the results of this resolution.
Definition: k3resolver.cpp:504
int protocol() const
Retrieves the protocol associated with this entry.
Definition: k3resolver.cpp:171
Definition: k3resolver.h:48
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
QString errorString() const
Returns the textual representation of the error in this object.
Definition: k3resolver.cpp:312
Definition: k3resolver.h:370
#define I18N_NOOP(x)
I18N_NOOP marks a string to be translated without translating it.
Definition: klocalizedstring.h:51
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
Definition: k3resolver_p.h:101
static QString localHostName()
Returns this machine's local hostname.
Definition: k3resolver.cpp:961
void setServiceName(const QString &service)
Sets the service name to be resolved.
Definition: k3resolver.cpp:348
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
QByteArray encodedName() const
Retrieves the encoded domain name associated with this entry, if there is any.
Definition: k3resolver.cpp:159
Definition: k3resolver.h:437
int socketType() const
Retrieves the socket type associated with this entry.
Definition: k3resolver.cpp:165
static QList< QByteArray > protocolName(int protonum)
Resolves a protocol number to its names.
Definition: k3resolver.cpp:608
virtual void virtual_hook(int id, void *data)
Standard hack to add virtuals later.
Definition: k3resolver.cpp:1051
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
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:267
int family() const
Retrieves the family associated with this socket address.
Definition: k3resolver.cpp:147
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
void setAddress(const QString &host, const QString &service)
Sets the new nodename and service name.
Definition: k3resolver.cpp:260
static int servicePort(const char *servname, const char *protoname)
Resolves a service name to its port number.
Definition: k3resolver.cpp:785
QString nodeName() const
The nodename to which the resolution was/is to be performed.
Definition: k3resolver.cpp:324
KSocketAddress address() const
Retrieves the socket address associated with this entry.
Definition: k3resolver.cpp:135
QString nodeName() const
The nodename to which the resolution was performed.
Definition: k3resolver.cpp:248
bool isRunning() const
Returns true if this object is currently running.
Definition: k3resolver.cpp:318
int error() const
Retrieves the error code associated with this resolution.
Definition: k3resolver.cpp:229
Definition: k3resolver.h:412
static int protocolNumber(const char *protoname)
Resolves a protocol name to its number.
Definition: k3resolver.cpp:728
void setAddress(const QString &node, const QString &service)
Sets both the host and the service names.
Definition: k3resolver.cpp:360
static QByteArray domainToAscii(const QString &unicodeDomain)
Returns the domain name in an ASCII Compatible Encoding form, suitable for DNS lookups.
Definition: k3resolver.cpp:1026
Definition: kaboutdata.h:33
Definition: k3resolver.h:441
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Thu Mar 2 2017 19:05:47 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2017 The KDE developers.
Generated on Thu Mar 2 2017 19:05:47 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.