kresolver.h
TQ_UINT16 length() const
Retrieves the length of the socket address structure.
Definition kresolver.cpp:148
int socketType() const
Retrieves the socket type associated with this entry.
Definition kresolver.cpp:172
TQCString encodedName() const
Retrieves the encoded domain name associated with this entry, if there is any.
Definition kresolver.cpp:166
TDESocketAddress address() const
Retrieves the socket address associated with this entry.
Definition kresolver.cpp:142
int family() const
Retrieves the family associated with this socket address.
Definition kresolver.cpp:154
TQString canonicalName() const
Retrieves the canonical name associated with this entry, if there is any.
Definition kresolver.cpp:160
KResolverEntry & operator=(const KResolverEntry &other)
Assignment operator.
Definition kresolver.cpp:184
void setAddress(const TQString &host, const TQString &service)
Sets the new nodename and service name.
Definition kresolver.cpp:278
int error() const
Retrieves the error code associated with this resolution.
Definition kresolver.cpp:247
TQString nodeName() const
The nodename to which the resolution was performed.
Definition kresolver.cpp:266
KResolverResults & operator=(const KResolverResults &other)
Assignment operator.
Definition kresolver.cpp:232
TQString serviceName() const
The service name to which the resolution was performed.
Definition kresolver.cpp:272
KResolverResults results() const
Retrieves the results of this resolution.
Definition kresolver.cpp:520
static TQString domainToUnicode(const TQCString &asciiDomain)
Does the inverse of domainToAscii and return an Unicode domain name from the given ACE-encoded domain...
Definition kresolver.cpp:1073
static TQStrList protocolName(int protonum)
Resolves a protocol number to its names.
Definition kresolver.cpp:614
TQString errorString() const
Returns the textual representation of the error in this object.
Definition kresolver.h:494
static KResolverResults resolve(const TQString &host, const TQString &service, int flags=0, int families=KResolver::InternetFamily)
Resolve the nodename and service name synchronously.
Definition kresolver.cpp:591
static TQCString domainToAscii(const TQString &unicodeDomain)
Returns the domain name in an ASCII Compatible Encoding form, suitable for DNS lookups.
Definition kresolver.cpp:1035
int systemError() const
Retrieve the associated system error code in this object.
Definition kresolver.cpp:328
void finished(KResolverResults results)
This signal is emitted whenever the resolution is finished, one way or another (success or failure).
static int servicePort(const char *servname, const char *protoname)
Resolves a service name to its port number.
Definition kresolver.cpp:793
static int protocolNumber(const char *protoname)
Resolves a protocol name to its number.
Definition kresolver.cpp:736
static bool resolveAsync(TQObject *userObj, const char *userSlot, const TQString &host, const TQString &service, int flags=0, int families=KResolver::InternetFamily)
Start an asynchronous name resolution.
Definition kresolver.cpp:602
TQString serviceName() const
The service name to which the resolution was/is to be performed.
Definition kresolver.cpp:346
static TQString normalizeDomain(const TQString &domain)
Normalise a domain name.
Definition kresolver.cpp:1119
A namespace to store all networking-related (socket) classes.
Definition kbufferedsocket.h:36
Trinity API Reference