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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ff1a2761c78313dd X-Google-Attributes: gid103376,public From: Richard Toy Subject: Re: Sockets in Apex 3.2.0b Date: 2000/02/10 Message-ID: <38A27D40.3B1D6030@eurocontrol.be>#1/1 X-Deja-AN: 584035867 Content-Transfer-Encoding: 7bit References: <87sclh$oe4$1@nnrp1.deja.com> To: reason67@my-deja.com X-Accept-Language: en,fr Content-Type: text/plain; charset=us-ascii Organization: Eurocontrol UAC Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-02-10T00:00:00+00:00 List-Id: You must compile the C code with -D_REENTRANT eg gcc -c -D_REENTRANT this will result in a per thread version of ERRNO. See Answerbook for more details. ================================================== Richard Toy tel:+31-(0)43-3661.112 Eurocontrol Maastricht UAC fax:+31-(0)43-3661.300 Horsterweg 11 NL-6191 RX Beek(l) e-mail(company):richard.toy@eurocontrol.be e-mail(private):richard_d_toy@hotmail.com ================================================== reason67@my-deja.com wrote: > I apologize if this gets posted twice. After about an hour of my post > not showing up, I decided to post again. > > I wrote a binding to the Sockets. I am using Apex 3.2.0b Duo on Solaris > 2.6. > > I have written test code that uses a non-blocking socket for the client. > > On the call to connect, I see interesting results: > > 1) In the non-threaded model, everything works as expected. > 2) In the threaded model, if I have only one thread (no tasks), > everything works as expected. > 3) In the threaded model, if I attempt to do the connect in a task, > funny things happen (errno is not set, it determines if a server > is not started immediately instead of returning that in the > select) > > Is there anyone out there familiar enough with the Apex Threaded > Run-time system enough to explain to me what causes this? > --- > Jeffrey Blatt > > Sent via Deja.com http://www.deja.com/ > Before you buy.