ResolveCachedIP method
|
acHostnameResolver component.
|
function ResolveCachedIP(const IP: String; PutToQueueIfNotYetResolved: Boolean = False): String;
|
The ResolveCachedIP method tries to retrieve the cached hostname by IP address specified in IP parameter.
|
|
If the hostname still not in the cache, it can put it to the queue for further resolving (IPList property), if PutToQueueIfNotYetResolved parameter is True.
|
|
However, this method only retrieves correct host name if it ALREADY was resolved and currently are in internal cache of component. If the hostname can not be retrieved IMEDIATELY (it was not found in cache), function just returns the same IP address as specified in parameter.
|
AutoResolve and IPList properties;
|
Execute, Abort and ResolveCachedIP methods;
|
OnHostnameRetrieved event.
|