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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!wn11feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: How to implement a server socket compatible to telnet? Reply-To: no to spamers (No@email.given.org) References: <8r_mk.151106$102.88358@bgtnsc05-news.ops.worldnet.att.net> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Sun, 10 Aug 2008 23:34:57 GMT NNTP-Posting-Host: 12.64.126.169 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1218411297 12.64.126.169 (Sun, 10 Aug 2008 23:34:57 GMT) NNTP-Posting-Date: Sun, 10 Aug 2008 23:34:57 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:1593 Date: 2008-08-10T23:34:57+00:00 List-Id: What's your point? "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