🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1775

Using Indy Idicmpclient to PING?

#1775
From: Armz
Date: Sun, 12 Nov 2006 05:11
18 lines
1388 bytes
Hi, im pretty new to C/C++, im coming from Object Pascal.

I want to do an equivalent from a code in Delphi to C using the 
idicmpclient coming with Indy. I use C++ Builder 6.

Here is my Delphi code:

---
idicmpclient1.Host := 'www.l.google.com';
idicmpclient1.Ping();
label1.caption(IntToStr(idicmpclient1.ReplyStatus.MsRoundTripTime) + 'ms');
---

I think my problem in C is when im trying to convert INT to STR.

All help is appreciate to help me with this little code.

Thanks!...
Technical Details
Message-ID: <4556ad14$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,7201a16be2762d14,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 12 Nov 2006 00:11:48 -0500
From: Armz <brain_walkers@hotmail.com>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Using Indy Idicmpclient to PING?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.122.43.40
Message-ID: <4556ad14$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1163308308 24.122.43.40 (11 Nov 2006 21:11:48 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail