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,1d4c29b101985358 X-Google-Attributes: gid103376,public From: Samuel Tardieu Subject: Re: Gnat and TCP/IP Date: 1996/04/15 Message-ID: #1/1 X-Deja-AN: 147556149 sender: tardieu@gargantua.enst.fr references: <4krg5u$bpp@lastactionhero.rs.itd.umich.edu> to: dickery@umich.edu (Matthew Benjamin) content-type: text/plain; charset=iso-8859-1 organization: TELECOM Paris mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-04-15T00:00:00+00:00 List-Id: >>>>> "Matthew" == Matthew Benjamin writes: Matthew> Dear Folks, I'm just becoming familiar with Ada/GNAT, and am Matthew> trying to determine how feasible it would be as an Matthew> implementation language for client/server database type Matthew> applications. . . It's as feasible as with other languages such as C, since you can import any C library function using "pragma Import". But if your entire application is going to be written in Ada, then you might consider using the Distributed System Annex which enforces strong typing and version consistency over a distributed program. Moreover, you do not have to write your own communication protocol since everything you need is either in the DSA libraries or generated by the compiler. Exceptions are of course handled correctly (you may want to check the Annex E of your Reference Manual if you want more information about this). Matthew> Is there a standard TCP/IP implementation for Ada and the GNU Matthew> Ada compiler? You would expect so, but I haven't heard of Matthew> one. (The PAL archives one for VAX/Verdix, but...) AFAIK there is no de-facto standard TCP/IP implementation for Ada95; an implementation of the DSA for GNAT is already in alpha-test phase (contact distribution@act-europe.gnat.com if you want more information on this) and uses its own implementation of the TCP/IP interface. Unfortunately, this one is not very well suited for general TCP/IP usage (this was not its goal). Matthew> Are people just using external C code? People use internal Ada code :-) The only thing you have to do is translate the "*.h" C headers into "*.ads" Ada specifications. C uses no magic, it calls library functions, and Ada can do the same :-) Sam -- "La cervelle des petits enfants, ca doit avoir comme un petit gout de noisette" Charles Baudelaire