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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,55214e3e1abad233 X-Google-Attributes: gid103376,public From: Simon Johnston Subject: Re: Sockets. Date: 1996/03/25 Message-ID: <199603251230.MAA25558@jerry.rb.icl.co.uk>#1/1 X-Deja-AN: 144170358 sender: Ada programming language priority: normal comments: Authenticated sender is organization: ICL Retail Systems reply-to: skj@acm.org newsgroups: comp.lang.ada x-mailer: Pegasus Mail for Windows (v2.30) Date: 1996-03-25T00:00:00+00:00 List-Id: > X-Newsreader: Gnus v5.0.15 > > In the tradition of not re-inventing the wheel, has anyone > completed or working on a UNIX sockets binding for Ada95? I once had > contact with the author of Paradise over a year ago, and he said he would > attempt it when GNAT advanced some more, but I've found nothing yet. I have been trying to get help on this topic for some time. I am using the Win32 bindings to access the Winsock API which may/may-not be of use to you. My problem is actually using the binding once I have it. If anyone has any experience please let me know. > In addition, would it be possible to define a generic package > with a discriminant, and then use that discriminate to instantiate a > generic private child package? From what I can tell, the answer should > be no, but I'm not sure. > > The reason I ask is it would make a package abstracting a > system-dependant but common function easier and smaller; you instantiate > the abtracted generic with a discriminant describing your OS type, and > the package then instantiates the low-level binding appropriate to that > OS... > > -- Cerebus > "Just a thought." > > with StandardDisclaimer; use StandardDisclaimer; package Sig is --,-------------------------------------------------------------------------. --|Simon K. Johnston - Development Engineer (C++/Ada95) |ICL Retail Systems | --|-----------------------------------------------------|3/4 Willoughby Road| --|Unix Mail: skj@acm.org |Bracknell | --|Telephone: +44 (0)1344 476320 Fax: +44 (0)1344 476302|Berkshire | --|Internal : 7261 6320 OP Mail: S.K.Johnston@BRA0801 |RG12 8TJ | --|WWW URL : http://www.acm.org/~skj/ |United Kingdom | --`-------------------------------------------------------------------------' end Sig;