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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1931a7946547d095 X-Google-Attributes: gid103376,public From: Jim Rogers Subject: Re: Sockets in Apex Date: 2000/02/09 Message-ID: <87sfm7$qrj$1@nnrp1.deja.com>#1/1 X-Deja-AN: 583762390 References: <87s92v$lke$1@nnrp1.deja.com> X-Http-Proxy: 1.1 x32.deja.com:80 (Squid/1.1.22) for client 205.170.64.211 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Feb 09 19:37:43 2000 GMT X-MyDeja-Info: XMYDJUIDada_daddy Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 95; EXCITE) Date: 2000-02-09T00:00:00+00:00 List-Id: In article <87s92v$lke$1@nnrp1.deja.com>, reason67@my-deja.com wrote: > I wrote a socket binding to Ada 95. I am creating an executable in Apex > 3.2.0b on Solaris 2.6. > > When I connect a non-blocking client socket in a task in the threaded > model, errno does not seem to be set by the underlying C. When I run in > the non-threaded model, or I connect the client without any tasks (just > the main), or I make the socket block, everything works fine. > I believe this is because the non-blocking form of the C socket library is not thread-safe. Specifically, the errno result is not available to a thread, but only to a process. This would be consistent with your results. If this is the case, there is nothing Ada can fix. The problem is in the C library call you bind to. -- Jim Rogers Colorado Springs, Colorado USA Sent via Deja.com http://www.deja.com/ Before you buy.