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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-16 08:54:18 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.39.3.168!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Ada program needs to ping another machine. Date: Wed, 16 Jan 2002 16:54:18 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1011200058 19884 129.241.83.82 (16 Jan 2002 16:54:18 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 16 Jan 2002 16:54:18 +0000 (UTC) User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:18973 Date: 2002-01-16T16:54:18+00:00 List-Id: 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). 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. Preben -- () Join the worldwide campaign to protect fundamental human rights. '||} {||' http://www.amnesty.org/