[adasockets] adasockets / GNAT.Sockets

Thomas De Contes d.l.tDeContes at free.fr
Fri Nov 16 13:02:40 CET 2007


Le 6 nov. 07 à 12:26, Samuel Tardieu a écrit :

> Thomas> Which is the advantage of adasockets compared to GNAT.Sockets
> Thomas> ?
>
> Sam> I prefer its interface, which is of a higher level than
> Sam> GNAT.Sockets one.
>
> Thomas> Could you give me some examples, please ?
>
> Thomas> Looking at PingPong example (in GNAT.Sockets), i don't see
> Thomas> anything else than Initialize and Finalize, Is it enough to
> Thomas> say that it is higher level ?
>
> This is a fair question. When AdaSockets was written, there was no
> GNAT.Sockets. Now that GNAT.Sockets has evolved, the useless of
> AdaSockets has been diminished.

ok, i understand :-)

>
> Note that I started a branch to rebase AdaSockets on GNAT.Sockets so
> that we can benefit from its ability to be cross-compiled

> However, there is a long way to be entirely GNAT.Sockets based while
> keeping the same interface. I think I may do a last major release on
> the 1.x branch (probably 1.9) which will be the same as 1.8.x (same
> interface) + cross-compilation capabilities. This branch will then be
> maintained but only accumulate bug fixes if needed.

> I'll then see if there is a point in making a AdaSockets 2.x. In this
> case, the interface would change a little, and AdaSockets would be a
> package which enhances GNAT.Sockets with more high-level services.

Cool :-)


Will you make Sockets.Naming.Address an array rather than a record,  
like GNAT.Sockets.Inet_Addr_Type ?

Will you make a Port type, "Natural range 0 .. 2**16-1", rather than  
only "Natural" ?
Or is this limit OS-dependent ?

Will you make a package like Sockets.String_IO where you will move  
all what is specific to String-oriented exchanges ?


For the moment I did not start a program which uses any socket, but i  
need to make one
Well, should i rather use AdaSockets or GNAT.Sockets ? (That's the  
question which I put myself)

Since i use AWS, i need GNAT
It seems that just at this moment, AdaSockets does not provide much  
more than GNAT.Sockets,
But maybe when you will have made AdaSockets 2.x and more high-level  
services, it will be easier to move to them from AdaSockets 1.x than  
from GNAT.Sockets



> PS/ If you wish to test the refactoring branch, you can either use GIT
>     or grab a snapshot from the URL given above.

is it http://www.rfc1149.net/download/adasockets/experimental/ 
adasockets-1.9-alpha1.tar.gz ?

> You will need to have
>     a recent autoconf and automake installed, and to run  
> "autoreconf -i"
>     in the top-level directory to add the auto-generated files such as
>     "configure". I'd be happy to receive success or failure reports
>     with details on your platform.

I agree to make this test, but I need to be completely guided

Can i insall adasockets-1.9-alpha1.tar.gz like any other version, with
./configure --prefix=$DOSSIERDINSTALLATION || exit
make install || exit
?

Since I did not start a program which uses any socket, i don't think  
that i can test more than the installation
But if you want that i make a specific test, feel free to ask me :-)


-- 
j'agis contre l'assistanat, je travaille dans une SCOP !




More information about the AdaSockets mailing list