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,99ad16995c7745f2 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!nlpi057.nbdc.sbc.com!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: How to implement a server socket compatible to telnet? Date: Sun, 10 Aug 2008 21:31:55 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <8r_mk.151106$102.88358@bgtnsc05-news.ops.worldnet.att.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1218418315 1312 192.74.137.71 (11 Aug 2008 01:31:55 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 11 Aug 2008 01:31:55 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:ENBjdc3ZeLhnSihsdtA4fc+7LnM= Xref: g2news1.google.com comp.lang.ada:1594 Date: 2008-08-10T21:31:55-04:00 List-Id: anon@anon.org (anon) writes: > What's your point? My point is that AdaCore might change the interface GNAT.Sockets.Thin on whim, whereas it won't change the interface GNAT.Sockets so easily, since the latter is a documented interface. That's all -- if you're happy with such, use GNAT.Sockets.Thin as you like. >... "GNAT.Sockets.Thin" is a universal interface to the > system socket library just like "Interface.C" is for interfacing C code. Plus, > most socket routines are standardized, in todays OS. Only the single > "GNAT.Sockets.Constants" file is altered, due to system control flags, but > most of the constants that are used for normal socket functions are > standardized as well. > > And since Adacore (GNAT) is the only game around for Ada-2005 specs > there is no reason to get upset with portability because what vendor would > you port your code to! > > > In , Robert A Duff writes: >>anon@anon.org (anon) writes: >> >>> If your doing a direct conversion from C to Ada using sockets then you >>> might need to use the lower-level socket package, "GNAT.Sockets.Thin". >>> This package has direct library links to the sockets library routines, >>> bypassing the extra layer of code in "GNAT.Sockets". >> >>GNAT.Sockets.Thin says: >> >>-- This package provides a target dependent thin interface to the sockets >>-- layer for use by the GNAT.Sockets package (g-socket.ads). This package >>-- should not be directly with'ed by an applications program. >> >>which means that AdaCore feels free to change the interface in >>incompatible ways at any time. >> >>- Bob