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,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.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: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Sockets Date: Wed, 15 Nov 2006 10:34:06 +0100 Organization: CERN News Message-ID: NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Trace: cernne03.cern.ch 1163583246 11444 137.138.37.241 (15 Nov 2006 09:34:06 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Wed, 15 Nov 2006 09:34:06 +0000 (UTC) User-Agent: Thunderbird 1.5.0.8 (X11/20061113) Xref: g2news2.google.com comp.lang.ada:7466 Date: 2006-11-15T10:34:06+01:00 List-Id: 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. -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/