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-Thread: 103376,514fcf85c99c5ed7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!not-for-mail From: Warner BRUNS Newsgroups: comp.lang.ada Subject: Re: Sockets Date: Wed, 15 Nov 2006 12:59:50 +0100 Organization: CERN News Message-ID: References: NNTP-Posting-Host: lxplus018.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: cernne03.cern.ch 1163591991 15983 137.138.5.66 (15 Nov 2006 11:59:51 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Wed, 15 Nov 2006 11:59:51 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060918 Red Hat/1.0.5-0.1.el3 SeaMonkey/1.0.5 In-Reply-To: Xref: g2news2.google.com comp.lang.ada:7471 Date: 2006-11-15T12:59:50+01:00 List-Id: Maciej Sobczak wrote: > Hi, > > Let's say that I would like to write an Ada program that uses sockets > and compile and run it on my Linux box. > > There three ways to do this that I'm aware of: > > 1. Use GNAT runtime library. The advantage is that it will be portable > to other platforms (as long as GNAT and its library is portable there). > > 2. Use C interfacing and call the system functions directly. The > advantage is that it will be portable to other compilers on the same > platform (no dependency on GNAT run-time libs). > > 3. Use Florist. The disadvantage is that I'm too lazy to install it > (it's another package) and I don't want to impose this requirement on > other lazy users of the same code. > > Is the above correct? What would you recommend? > > BTW - Unix sockets are of interest as well. > I once tried to use POSIX functionality via Florist, but could not, as (at least then, a year ago), Florist wants to be compiled by gnat. So using Florist does not give you more portability than using the gnat runtime. Warner