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,be3d89c2ad66a506 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!atl-c08.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!ALLTEL.NET-a2kHrUvQQWlmc!not-for-mail Date: Tue, 08 Nov 2005 10:32:02 -0600 From: "Marc A. Criley" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Advice on abort References: <1131117934.372137.244900@g44g2000cwa.googlegroups.com> <436f6ad8$0$196$edfadb0f@dread11.news.tele.dk> <1131383393.903975.180350@g47g2000cwa.googlegroups.com> <1rb5pcog6iau7$.180ltiuk2q6cv.dlg@40tude.net> <4370bc36$0$180$edfadb0f@dread11.news.tele.dk> In-Reply-To: <4370bc36$0$180$edfadb0f@dread11.news.tele.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@usenetserver.com Organization: UseNetServer.com X-Trace: c60ca4370d30ca13cf34014164 Xref: g2news1.google.com comp.lang.ada:6288 Date: 2005-11-08T10:32:02-06:00 List-Id: Poul-Erik Andreasen wrote: > Dmitry A. Kazakov wrote: >> Note also that what you want to do is not an Ada issue at all. >> Actually you >> don't want to abort any Ada task. What you want is to cancel an OS >> operation blocking some Ada task. This can be done *only* by means of the >> OS being under consideration. There are little choices: >> >> 1. Asynchronous I/O without blocking >> >> 2. Synchronous I/O with some cancel operation invoked from outside (like >> closing socket, or Abort_Selection proposed by Marc Criley) >> > > This will however require that the sockets or select are made public in > some way, wich a dont like. The way I did this was to simply wrap all the socket and selector interations inside a "DTraq_Stream_Handle" object, so the application is just interacting with it via its interface. Yeah, the _object_ is accessible, but that's functionally necessary and appropriate. -- Marc A. Criley -- McKae Technologies -- www.mckae.com -- DTraq - XPath In Ada - XML EZ Out