comp.lang.ada
 help / color / mirror / Atom feed
From: "Gerhard Häring" <gerhard@bigfoot.de>
Subject: Re: Ada program needs to ping another machine.
Date: 16 Jan 2002 18:33:16 GMT
Date: 2002-01-16T18:33:16+00:00	[thread overview]
Message-ID: <slrna4bhrc.22t.gerhard@lilith.my-fqdn.de> (raw)
In-Reply-To: slrna4bc3i.2cl.randhol+abuse@kiuk0156.chembio.ntnu.no

Preben Randhol wrote in <slrna4bc3i.2cl.randhol+abuse@kiuk0156.chembio.ntnu.no>:
> 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 <at> bigfoot <dot> 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')))



  reply	other threads:[~2002-01-16 18:33 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-16 16:54 Ada program needs to ping another machine Preben Randhol
2002-01-16 18:33 ` Gerhard Häring [this message]
2002-01-16 20:55 ` Stephen Leake
2002-01-16 22:00   ` Preben Randhol
2002-01-16 22:22     ` Jim Rogers
2002-01-16 22:43     ` Jeffrey Carter
2002-01-17  9:04       ` Preben Randhol
2002-01-18 12:21     ` Adrian Knoth
2002-01-18 13:28       ` Preben Randhol
2002-01-18 21:32         ` Adrian Knoth
2002-01-17 16:36   ` Frank
2002-01-17 17:08     ` Darren New
2002-01-17 18:50     ` Preben Randhol
2002-01-17 20:44       ` Johannes Grødem
2002-01-17 21:43         ` Florian Weimer
2002-01-17 22:31           ` Johannes Grødem
2002-01-17 20:56       ` Gisle Sælensminde
2002-01-18 10:05         ` Preben Randhol
2002-01-18 17:37       ` Pascal Obry
2002-01-18 18:05         ` Preben Randhol
2002-01-18 18:24           ` Pascal Obry
2002-01-17  3:13 ` R. Srinivasan
2002-01-17 10:37   ` Jerry van Dijk
2002-01-17  9:48 ` Peter Hermann
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox