Article View: borland.public.cppbuilder.internet.socket
Article #1676Re: Using Indy Idicmpclient to PING?
From: Michel Leunen
Date: Sun, 12 Nov 2006 11:03
Date: Sun, 12 Nov 2006 11:03
25 lines
1606 bytes
1606 bytes
Armz wrote: > idicmpclient1.Host := 'www.l.google.com'; > idicmpclient1.Ping(); > label1.caption(IntToStr(idicmpclient1.ReplyStatus.MsRoundTripTime) + 'ms'); This should work (not tested): #include <IdIcmpClient.hpp> TIdIcmpClient *IdIcmpClient = new TIdIcmpClient(this); IdIcmpClient->Host = "www.1.google.com"; IdIcmpClient->Ping(); Label1->Caption = IntToStr(IdIcmpClient->ReplyStatus.MsRoundTripTime)+ " ms"; delete IdIcmpClient; Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Technical Details
Message-ID:
<4556ff7d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4556ad14$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,7201a16be2762d14 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 12 Nov 2006 12:03:27 +0100 From: Michel Leunen <nospam@noreply.be> Organization: www.leunen.com User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Using Indy Idicmpclient to PING? References: <4556ad14$1@newsgroups.borland.com> In-Reply-To: <4556ad14$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.247.90.36 Message-ID: <4556ff7d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1163329405 81.247.90.36 (12 Nov 2006 03:03:25 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail