From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Ada program needs to ping another machine.
Date: 16 Jan 2002 15:55:56 -0500
Date: 2002-01-16T21:00:05+00:00 [thread overview]
Message-ID: <uk7uiqalf.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: slrna4bc3i.2cl.randhol+abuse@kiuk0156.chembio.ntnu.no
Preben Randhol <randhol+abuse@pvv.org> writes:
> 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. I'm not asking for a solution (of course
> if somebody has something they want to share it would be nice), but some
> hints on what I should read up on to find out how to do this. Can I use
> sockets for instance? I'm developing on Linux and I don't have much clue
> about Windows programming so I would like to make this as portable as
> possible (that is, just recompiling in windows would be nice).
Get the C source for ping from the Linux distribution, and either
pragma Import some of it, or translate it all to Ada.
> Eventually it would be nice to evolve the program into a talk
> program (a program where one write simultaneously on a split screen)
> as the wintalk program is rather unstable and I would hope Ada could
> increase security.
There are other talk programs out there; I doubt an Ada one would add
much. It would, of course, be fun to do :).
--
-- Stephe
next prev parent reply other threads:[~2002-01-16 20:55 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
2002-01-16 20:55 ` Stephen Leake [this message]
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