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!news3.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Sockets Date: Wed, 15 Nov 2006 23:13:55 +0000 Organization: Pushface Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1163632434 5524 62.49.19.209 (15 Nov 2006 23:13:54 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 15 Nov 2006 23:13:54 +0000 (UTC) Cancel-Lock: sha1:KChmnJKv2ta1XRj+gKX9bRvmlxQ= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:7480 Date: 2006-11-15T23:13:55+00:00 List-Id: Maciej Sobczak writes: > 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). This is the one I would go for. Linux/Windows/Mac OS X/Solaris/[Alpha UNIX]/VxWorks ... > 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). Which other Ada compilers were you thinking of using on Linux? and anyway interfacing to other languages might be one of the less portable aspects. > 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. No experience. But we would have had much trouble justifying an external package without vendor support if the vendor package was 'good enough' (and GNAT.Sockets is certainly that, even if not feature-free).