UDNSCache is a PowerPlant class that is used for a local cache for DNS entries.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Source files:
Purpose:
Add an entry to the DNS cache.
Access :
Prototype:
static void AddToDNSCache( UInt32 inHostIP,
ConstStringPtr inHostName); The parameters for this method are:
| UInt32 | inHostIP | The host IP address. |
| ConstStringPtr | inHostName | The host name string. |
Return:
Purpose:
Access :
Prototype:
static void CheckCache();Parameters:
Return:
Purpose:
Access :
Prototype:
static void CreateDNSCacheElem(UInt32 inHostIP,
ConstStringPtr inHostName,
SDNSCacheElem& outElem ); The parameters for this method are:
| UInt32 | inHostIP | The host IP address. |
| ConstStringPtr | inHostName | The host name string. |
| SDNSCacheElem& | outElem | The element. |
Return:
Purpose:
Retrieve a DNS entry from the cache.
Access :
Prototype:
static Boolean GetAddressFromCache(
UInt32 inHostIP, LStr255& outHostName );Parameters:
The parameters for this method are:
| UInt32 | inHostIP | The host IP address. |
| LStr255& | outHostName | The host name string. |
Return:
Purpose:
Retrieve a DNS name from the cache.
Access :
Prototype:
static UInt32 GetNameFromCache(ConstStringPtr inHostName);Parameters:
The parameters for this method are:
| ConstStringPtr | inHostName | The host name string. |
Return:
Returns the IP address if found in the cache. If not found, returns zero.
Purpose:
Access :
Prototype:
static LArray* sOTDNSNameCache;
Purpose:
Access :
Prototype:
static LArray* sOTDNSAddressCache;