From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: (Linux) GNAT socket exception - when setting No_Delay
Date: Mon, 17 Apr 2006 14:14:09 +0200
Date: 2006-04-17T14:14:09+02:00 [thread overview]
Message-ID: <44438691.3050902@mailinator.com> (raw)
In-Reply-To: <wccbqv5j6kk.fsf@shell01.TheWorld.com>
Robert A Duff wrote:
> "AAFellow@hotmail.com" <AAFellow@hotmail.com> writes:
>
>
>>Hi Guys,
>>
>>I'm porting some Ada code from Windows to Linux and I'm getting an
>>exception that's caused by the code that tries to set the "No_Delay"
>>option. This worked fine on windows...is there any reason it doesn't
>>seem to work on Linux?
>>
>>I'm trying to research this myself now, but any info or anything you
>>can do to point me in the right direction would really be appreciated.
>>Thanks!!
>
>
> I don't know about this particular case, but I have noticed different
> behavior of sockets between windows and linux. Especially in
> error-condition cases. I don't think that's the fault of the Ada
> sockets implementation -- I think the underlying operating systems
> just do subtly different things. I was able to write portable code,
> but only by experimenting with both operating systems. Reading
> documentation didn't always help, here (sigh!).
I concur here. When using non blocking sockets, be prepared to get
different exceptions in windows and in linux. Also detecting if a socket
connection had succeeded or was still alive was tricky. As Robert wrote,
it was a matter of having both systems at hand.
next prev parent reply other threads:[~2006-04-17 12:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-13 21:34 (Linux) GNAT socket exception - when setting No_Delay AAFellow
2006-04-14 1:20 ` Robert A Duff
2006-04-17 12:14 ` Alex R. Mosteo [this message]
2006-04-17 14:50 ` AAFellow
2006-04-19 16:41 ` Jeffrey R. Carter
2006-04-19 19:56 ` AAFellow
2006-04-19 20:15 ` Alex R. Mosteo
2006-04-19 23:00 ` Jeffrey Creem
2006-04-20 6:44 ` Alex R. Mosteo
2006-04-20 19:32 ` AAFellow
2006-04-20 2:41 ` Gene
2006-04-14 9:22 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox