Re: [Indy10] PING?

Giganews Newsgroups
Subject: Re: [Indy10] PING?
Posted by:  Steve Zimmelman (skz@charter.no.spam.net)
Date: Tue, 10 Jan 2006

Looks like it's gone.  The docs still mention it, but there's no sign of it.
And... The version that shipped with D2006 is missing the unit
IdIcmpClient.pas.

-Steve-

"fredtheman" <gkdsh0n…@sneakemail.com> wrote in message
news:4B05505612E8E240gkdsh0n…@sneakemail.com...
> Hi
>
> I seem to have installed Indy10 OK, but this code that used to work with
> the version of Indy that comes with D7 no longer compiles, and I couldn't
> find what it's been replaced with in Indy10. Does someone know?
>
> [code]
> procedure TForm1.Timer1Timer(Sender: TObject);
> var
>  RepStatus: TReplyStatus;
> begin
>  //PING host
>  IdIcmpClient1.Host := '127.0.0.1';
>  IdIcmpClient1.ReceiveTimeout := 2000; //2 seconds
>  IdIcmpClient1.Ping;
>
>  //Works in Indy Delphi 7, no longer works in Indy 10
>  //"Undeclared identifier: 'ReplyStatus'"
> if IdIcmpClient1.ReplyStatus.ReplyStatusType=rsTimeOut then begin

Replies

In response to

[Indy10] PING? posted by fredtheman on Tue, 3 Jan 2006