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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c8b574b34e9605de X-Google-Attributes: gid103376,public From: Corey Minyard Subject: Re: Ada 95 Sockets example wanted Date: 1997/08/18 Message-ID: #1/1 X-Deja-AN: 264950578 Sender: minyard@wf-rch.cirr.com References: <33F35E0C.6800@vfb23.mds.lmco.com> Organization: Wonderforce Research Newsgroups: comp.lang.ada Date: 1997-08-18T00:00:00+00:00 List-Id: "Marc A. Criley" writes: > > I'd like to see some sample Ada 95 software that deals with the > basics of Unix socket manipulation: open, close, read, and write. > I've never had to get down to the low-level interaction with > sockets, having been able to use various layering packages on > top of them. > > So now I would like to see some socket manipulation software > written in Ada 95 rather than having to try to modify these various > Ada 83 layering packages to use the Interfaces.C package. > > I'll be doing the compilation with GNAT, and working on both HP-UX > and Linux platforms (if that makes any difference), though I'd be > willing to retarget the software written for another Unix box, > assuming there's any significant differences. > > Thanks for any assistance. > I have a set of socket bindings on my home page that do a rather thin binding (http://www.concentric.net/~Minyard). I also have a program to page alphanumeric pagers that was written in Ada; it can talk to a modem sitting on a telnet socket, but it unfortunately does not use the previously mentioned bindings since it was written before them. It has a small C file that provides access to select and an open call and the rest is straight bindings into the Posix calls. -- Corey Minyard Internet: minyard@acm.org Work: minyard@nortel.ca UUCP: minyard@wf-rch.cirr.com