![]() |
![]() ![]() ![]() |
acHostnameResolver component.
|
procedure Execute;
|
The Execute method starts the thread which resolves hostnames by IP addresses specified in IPList property.
|
|
To get resolved hostnames write OnHostnameRetrieved event.
|
|
To terminate hostname lookup process "manually", without awaiting finishing of the process call Abort method.
|
|
![]() |
var
|
I: Integer;
|
begin
|
// -- snip
|
acHostnameResolver1.Abort;
|
I := ConnectionList.Count;
|
if I <> 0 then
|
for I := 0 to I - 1 do
|
begin
|
acHostnameResolver1.IPList.Add(ConnectionList[I].LocalIPStr);
|
acHostnameResolver1.IPList.Add(ConnectionList[I].RemoteIPStr);
|
end;
|
acHostnameResolver1.Execute;
|
// -- snip
|
end;
|
AutoResolve and IPList properties;
|
Execute, Abort and ResolveCachedIP methods;
|
OnHostnameRetrieved event.
|