KDELibs4Support
32 #include <QSharedDataPointer> 33 #include "k3socketaddress.h" 34 #include "kdemacros.h" 41 template<
typename T>
class QSet;
51 class KResolverManager;
54 class KResolverEntryPrivate;
110 KResolverEntry(
const struct sockaddr *sa, quint16 salen,
int socktype,
137 quint16 length()
const;
165 int socketType()
const;
170 int protocol()
const;
192 class KResolverResultsPrivate;
255 int systemError()
const;
263 void setError(
int errorcode,
int systemerror = 0);
282 virtual void virtual_hook(
int id,
void *data);
287 class KResolverPrivate;
335 UnknownFamily = 0x0001,
338 LocalFamily = UnixFamily,
342 InternetFamily = IPv4Family | IPv6Family,
343 InetFamily = InternetFamily,
345 KnownFamily = ~UnknownFamily,
346 AnyFamily = KnownFamily | UnknownFamily
404 UnsupportedFamily = -7,
405 UnsupportedService = -8,
406 UnsupportedSocketType = -9,
474 ~KResolver()
override;
502 int systemError()
const;
512 bool isRunning()
const;
530 void setNodeName(
const QString &nodename);
538 void setServiceName(
const QString &service);
563 int setFlags(
int flags);
571 void setFamily(
int families);
592 void setSocketType(
int type);
618 void setProtocol(
int protonum,
const char *name =
nullptr);
661 bool wait(
int msec = 0);
674 void cancel(
bool emitSignal =
true);
696 bool event(
QEvent *)
override;
733 static QString errorString(
int errorcode,
int syserror = 0);
759 int flags = 0,
int families = KResolver::InternetFamily);
795 static bool resolveAsync(
QObject *userObj,
const char *userSlot,
797 int flags = 0,
int families = KResolver::InternetFamily);
897 static int protocolNumber(
const char *protoname);
906 static int servicePort(
const char *servname,
const char *protoname);
918 static QList<QByteArray> serviceName(
const char *servname,
const char *protoname);
937 static QString localHostName();
944 void setError(
int errorcode,
int systemerror = 0);
947 virtual void virtual_hook(
int id,
void *data);
949 KResolverPrivate *
const d;
951 friend class ::KNetwork::Internal::KResolverManager;
Name and service resolution class.
A generic socket address.
Name and service resolution results.
A namespace to store all networking-related (socket) classes.
Flags
Flags for the resolution.
SocketFamilies
Address family selection types.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 22:59:26 by
doxygen 1.8.11 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.