Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Re: idIcmp error msgs D7 indy10.1.5
| Subject: | Re: idIcmp error msgs D7 indy10.1.5 |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 25 Apr 2006 10:35:15 |
"Jacques Noah" <jacques.noah@btinternet.com> wrote in message
news:444e0948@newsgroups.borland.com...
> [Error] Undeclared identifier: 'TTL'
There is no TTL property in Indy 10, or Indy 9 for that matter. It looks
like you are trying to use very old Indy code, probably from Indy 8 or
earlier.
> [Error] Unit1.pas(36): Undeclared identifier: 'ReplyStatus'
You are probably not using the latest 10.1.5 snapshot. That has already
been addressed.
> [Error] Unit1.pas(36): 'OF' expected but identifier 'ReplyStatusType'
found
That is a side-effect of the compiler not being able to find the ReplyStatus
property.
> I've added idReply to the uses clause
That is not the correct thing to do. TIdICMPClient does not use TIdReply at
all.
> I want to check if a computer is connected to the internet, by pinging
> a website like Google or yahoo, if there is a echo then i would know
> that it is connected otherwise it's not.
I do not recommend that approach. A lot of servers have pinging disabled,
so you can potentially get false negatives. If you really want to know if
the Internet is available, then you should try downloading something simple.
For example, send a request to http://checkip.dyndns.org and see if you get
a valid response back.
Gambit
none