Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QDnsHostInfo class provides information about a host name lookup. More...
#include <QDnsHostInfo>
Note: All the functions in this class are reentrant.
The QDnsHostInfo class provides information about a host name lookup.
A QDnsHostInfo is passed to the slot invoked by QDns::getHostByName(). It contains the result of the lookup.
host() returns the host name that was looked up. Call addresses() to get the list of IP addresses for the host.
If the lookup failed, error() returns the type of error that occurred. errorString() gives a human-readable description of the lookup error.
See also QDns.
QDnsHostInfo::NoError | The lookup was successful. |
QDnsHostInfo::HostNotFound | No IP addresses were found for the host. |
QDnsHostInfo::UnknownError | An unknown error occurred. |
Constructs an empty host info object.
Copy constructor. Copies the data of hostInfo.
Destroys the host info object.
Returns the list of IP addresses returned by the host name lookup; this list may be empty.
See also host().
If the host name lookup failed, this function returns the type of error that occurred; otherwise NoError is returned.
See also QDnsHostInfo::Error and errorString().
If the lookup failed, this function returns a human readable description of the error; otherwise "Unknown error" is returned.
See also error().
Returns the name of the host whose IP addresses were looked up.
Assigns the data of the hostInfo object to this host info object, and returns a reference to it.
Copyright © 2004 Trolltech | Trademarks | Qt 4.0.0-b1 |