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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news3.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: (Linux) GNAT socket exception - when setting No_Delay Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1144964069.054981.163230@g10g2000cwb.googlegroups.com> Date: Fri, 14 Apr 2006 11:22:40 +0200 Message-ID: <1f1uw078vwhv6$.1h62nvgtq2nty$.dlg@40tude.net> NNTP-Posting-Date: 14 Apr 2006 11:22:40 MEST NNTP-Posting-Host: 95855cac.newsread2.arcor-online.net X-Trace: DXC=nNlKk]j8IM82j7j^L?86D8Q5U85hF6f;4jW\KbG]kaM8AV6U:Z=fE=?k?WhVJFP=Q9[6LHn;2LCV>[@h50[:2 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3828 Date: 2006-04-14T11:22:40+02:00 List-Id: On 13 Apr 2006 14:34:29 -0700, AAFellow@hotmail.com wrote: > 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 would say that it can't be related to Ada. Check if you are using setsockopt properly. Maybe the buffer pointer or size is wrong. BOOL might have different sizes under Windows and Linux, something like that. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de