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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,89bcac6751c47fb0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: (Linux) GNAT socket exception - when setting No_Delay Date: 13 Apr 2006 21:20:59 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1144964069.054981.163230@g10g2000cwb.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1144977659 17722 192.74.137.71 (14 Apr 2006 01:20:59 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 14 Apr 2006 01:20:59 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:3826 Date: 2006-04-13T21:20:59-04:00 List-Id: "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!). - Bob