From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a79652a22930869 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-16 10:33:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!213-196-68-75.hosts.streamgate.NET!not-for-mail From: Gerhard =?iso-8859-15?Q?H=E4ring?= Newsgroups: comp.lang.ada Subject: Re: Ada program needs to ping another machine. Date: 16 Jan 2002 18:33:16 GMT Organization: People's Front of Judea Message-ID: References: NNTP-Posting-Host: 213-196-68-75.hosts.streamgate.net (213.196.68.75) X-Trace: fu-berlin.de 1011205996 31966971 213.196.68.75 (16 [124666]) User-Agent: slrn/0.9.7.3 (Linux) Cache-Post-Path: gargamel.hqd-internal!gerhard@lilith.hqd-internal X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Xref: archiver1.google.com comp.lang.ada:18978 Date: 2002-01-16T18:33:16+00:00 List-Id: Preben Randhol wrote in : > I'm making a small Ada program (on my spare time) that I want to be able > to run from both Linux and Windows. The problem is it need to check if > another machine is on or off and display this in a small GUI interface. > I can do this by using the ping command on Linux, but I would rather > learn how to do this from Ada. [...] What about trying to connect to the echo port using AdaSockets? Perhaps AdaSockets even supports ICMP? I haven't checked (never used it myself). Gerhard -- mail: gerhard bigfoot de registered Linux user #64239 web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id 86AB43C0 public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0 reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))