KNetwork::KResolverEntry Class Reference
One resolution entry. More...
#include <kresolver.h>
Public Member Functions | |
KResolverEntry () | |
KResolverEntry (const KSocketAddress &addr, int socktype, int protocol, const QString &canonName=QString::null, const QCString &encodedName=QCString()) | |
KResolverEntry (const struct sockaddr *sa, Q_UINT16 salen, int socktype, int protocol, const QString &canonName=QString::null, const QCString &encodedName=QCString()) | |
KResolverEntry (const KResolverEntry &other) | |
~KResolverEntry () | |
KSocketAddress | address () const |
Q_UINT16 | length () const |
int | family () const |
QString | canonicalName () const |
QCString | encodedName () const |
int | socketType () const |
int | protocol () const |
KResolverEntry & | operator= (const KResolverEntry &other) |
Detailed Description
One resolution entry.This class is one element in the resolution results list. It contains the socket address for connecting, as well as a bit more of information: the socket type, address family and protocol numbers.
This class contains all the information required for creating, binding and connecting a socket.
KResolverEntry objects implicitly share data, so copying them is quite efficient.
- Author:
- Thiago Macieira <thiago.macieira@kdemail.net>
Definition at line 66 of file kresolver.h.
Constructor & Destructor Documentation
|
Default constructor. Definition at line 82 of file kresolver.cpp. |
|
Constructs a new KResolverEntry from a KSocketAddress and other data.
The KSocketAddress
|
|
Constructs a new KResolverEntry from raw forms of socket addresses and other data. This constructor instead creates an internal KSocketAddress object.
|
|
Copy constructor. This constructor performs a shallow-copy of the other object. Definition at line 113 of file kresolver.cpp. |
|
Destructor. The destructor frees associated resources with this object. It does not destroy shared data. Definition at line 120 of file kresolver.cpp. |
Member Function Documentation
|
Retrieves the socket address associated with this entry. Definition at line 130 of file kresolver.cpp. Referenced by KNetwork::KSocksSocketDevice::bind(), KNetwork::KSocketDevice::bind(), KNetwork::KSocksSocketDevice::connect(), KNetwork::KSocketDevice::connect(), and KNetwork::KHttpProxySocketDevice::connect(). |
|
Retrieves the length of the socket address structure. Definition at line 136 of file kresolver.cpp. Referenced by KNetwork::KSocksSocketDevice::bind(), KNetwork::KSocketDevice::bind(), KNetwork::KSocksSocketDevice::connect(), and KNetwork::KSocketDevice::connect(). |
|
Retrieves the family associated with this socket address. Definition at line 142 of file kresolver.cpp. Referenced by KNetwork::KSocketDevice::create(). |
|
Retrieves the canonical name associated with this entry, if there is any. If the canonical name was not found, this function returns QString::null. Definition at line 148 of file kresolver.cpp. |
|
Retrieves the encoded domain name associated with this entry, if there is any. If this domain has been resolved through DNS, this will be the the ACE-encoded hostname. Returns a null QCString if such information is not available. Please note that this information is NOT to be presented to the user, unless requested. Definition at line 154 of file kresolver.cpp. |
|
Retrieves the socket type associated with this entry. Definition at line 160 of file kresolver.cpp. Referenced by KNetwork::KSocketDevice::create(). |
|
Retrieves the protocol associated with this entry. Definition at line 166 of file kresolver.cpp. Referenced by KNetwork::KSocketDevice::create(). |
|
Assignment operator. This function copies the contents of the other object into this one. Data will be shared between the two of them. Definition at line 172 of file kresolver.cpp. References d. |
The documentation for this class was generated from the following files: