H
hongsen
Unregistered / Unconfirmed
GUEST, unregistred user!
下面对TIdIcmpClient的使用方法对吗?
begin
try
IdIcmpClient.ReceiveTimeout := 1000;
IdIcmpClient.Host := gAppServAddr;
IdIcmpClient.Ping;
except
result:=false;
exit;
end;
if IdIcmpClient.ReplyStatus.ReplyStatusType= rsTimeOut then
result:=false
else
result:=true;
end;
begin
try
IdIcmpClient.ReceiveTimeout := 1000;
IdIcmpClient.Host := gAppServAddr;
IdIcmpClient.Ping;
except
result:=false;
exit;
end;
if IdIcmpClient.ReplyStatus.ReplyStatusType= rsTimeOut then
result:=false
else
result:=true;
end;