comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org (anon)
Subject: Re: How to implement a server socket compatible to telnet?
Date: Mon, 11 Aug 2008 18:26:50 GMT
Date: 2008-08-11T18:26:50+00:00	[thread overview]
Message-ID: <Kv%nk.302529$SV4.39154@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: wcctzds5oc4.fsf@shell01.TheWorld.com

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 <wcctzds5oc4.fsf@shell01.TheWorld.com>, Robert A Duff <bobduff@shell01.TheWorld.com> 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 <wccsktcecuk.fsf@shell01.TheWorld.com>, Robert A Duff <bobduff@shell01.TheWorld.com> 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




  reply	other threads:[~2008-08-11 18:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08 11:31 How to implement a server socket compatible to telnet? snoopysalive
2008-08-08 13:15 ` Jeffrey Creem
2008-08-08 13:35 ` Alex R. Mosteo
2008-08-08 16:24 ` anon
2008-08-09 13:19   ` snoopysalive
2008-08-10 22:15   ` Robert A Duff
2008-08-10 23:34     ` anon
2008-08-11  1:31       ` Robert A Duff
2008-08-11 18:26         ` anon [this message]
2008-08-11 18:59           ` Samuel Tardieu
2008-08-20 21:25             ` snoopysalive
2008-08-20 22:57               ` anon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox