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!news2.google.com!news.glorb.com!wn14feed!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: Mon, 11 Aug 2008 18:26:50 GMT NNTP-Posting-Host: 12.65.174.100 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1218479210 12.65.174.100 (Mon, 11 Aug 2008 18:26:50 GMT) NNTP-Posting-Date: Mon, 11 Aug 2008 18:26:50 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:1601 Date: 2008-08-11T18:26:50+00:00 List-Id: Your just trying to make Trouble and Destroy Ada! Because in that concept you should NEVER use "GNAT.Sockets" either. That means that Ada will be cripple because it will NEVER be able to use the Internet or Com ports, or USB because those I/O packages are not define in the RM. Because these extra hardware packages are not apart of the RM they must be defined somewhere, and Adacore has choosen to places these hardware packages in its GNAT subpackages. And in most cases they use "STADARDIZE" calls into the OS or hardware. But in you concept the only hardware I/O package for GNAT Ada are disk, keyboard, or simple video aka basically OS and BIOS I/O calls. But a language must have I/O and the ability to expand beyond its RM or it DIES! But may be that's what you want! This "STADARDIZE" calls concepts explains one reason why the UART package has taken so long to become apart of the GNAT system, there is no true standards on calls for the UART even though the ports and functions have been well defined for years. And there is only vendor that does not maintains a level of Standardizing behavior, and that is Sun with Java. In evey new version of Java there are some routines that have been "DEPRECATED", but most people do not say "DO NOT USE" that routine or package because SUN may change it. That's because those progammers and uses want JAVA to be succeed. So, if you want GNAT Ada to succeed as well, do not cut any package down. You should show the person who ask the question how it should be done. And in this case, either by writing code, given a package. Or posting a link to a telnet program written in Ada that they can download and check out for themselves. In , Robert A Duff writes: >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