comp.lang.ada
 help / color / mirror / Atom feed
From: Duncan Sands <baldrick@free.fr>
To: Pascal Obry <p.obry@wanadoo.fr>, comp.lang.ada@ada-france.org
Subject: Re: ADA vs JAVA sockets
Date: Wed, 7 Jan 2004 22:11:36 +0100
Date: 2004-01-07T22:11:36+01:00	[thread overview]
Message-ID: <mailman.1.1073509924.279.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <uptdv5ysj.fsf@wanadoo.fr>

On Wednesday 07 January 2004 20:44, Pascal Obry wrote:
> Duncan Sands <baldrick@free.fr> writes:
> > GNAT Sockets in 3.15p is full of bugs.
>
> AWS works just fine with 3.15p, so saying that GNAT Sockets in 3.15p is
> full of bugs is certainly pushing a bit!

OK, Check_Selector is full of bugs (this is fixed in gcc CVS).  Also, stream
'Read and 'Write don't work well with non-blocking sockets: they try to
read (write) in a busy loop, consuming all CPU.  I didn't try most of the
other routines, perhaps they are perfect and I was unlucky to try the
only routines with problems.

Duncan.

PS:

(1) On line 367 of g-socket.adb, this

      Len := C.int'Max (Max (RSet) + 1, Len);

should be

      Len := C.int'Max (Max (WSet) + 1, Len);

(2) Check_Selector does not work for sockets with fd > 31.
Since normal files also take up fd's, you don't need to have
32 open sockets to see this.  This requires major changes to
fix, and is fixed in gcc CVS.




  reply	other threads:[~2004-01-07 21:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-07  8:39 ADA vs JAVA sockets Riccardo
2004-01-07 13:31 ` Duncan Sands
2004-01-07 16:28   ` Jano
2004-01-07 19:44   ` Pascal Obry
2004-01-07 21:11     ` Duncan Sands [this message]
2004-01-08 14:31       ` Gnat 3.15p bugs (was: ADA vs JAVA sockets) Jano
2004-01-08 16:24         ` Duncan Sands
2004-01-08 19:14           ` Jano
2004-01-08 20:16           ` tmoran
2004-01-08 20:58             ` Duncan Sands
2004-01-07 14:24 ` ADA vs JAVA sockets Stephen Leake
2004-01-07 15:43 ` Steve
2004-01-07 22:23 ` Frode Tennebø
2004-01-08  7:09   ` David Marceau
2004-01-08  8:32 ` More details on:--- ADA vs JAVA sockets--- Riccardo
2004-01-08 20:16   ` tmoran
2004-01-09  7:27     ` Riccardo
2004-01-09  8:45       ` Ole-Hjalmar Kristensen
2004-01-09 10:27         ` thanks Riccardo
2004-01-09 13:58           ` thanks Robert Spooner
replies disabled

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