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: a07f3367d7,ff1f0403676a2300 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.106.199 with SMTP id gw7mr626607wib.0.1345237646387; Fri, 17 Aug 2012 14:07:26 -0700 (PDT) Path: n2ni181726861win.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!94.232.116.11.MISMATCH!feed.xsnews.nl!border-1.ams.xsnews.nl!plix.pl!newsfeed2.plix.pl!217.153.128.51.MISMATCH!nf1.ipartners.pl!ipartners.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada Networking (General/Design) Date: Tue, 14 Aug 2012 12:14:01 +0200 Organization: cbb software GmbH Message-ID: <5i0visgzog1.6g1g6fnuefla$.dlg@40tude.net> References: <19sij6rw9nhaa.164mz6sr816wk.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-08-14T12:14:01+02:00 List-Id: On Mon, 13 Aug 2012 20:28:58 +0000 (UTC), tmoran@acm.org wrote: >> For non-blocking I/O there should be a way to have a pseudo-task ran by the >> events on the socket, rather than scheduled. > That's what overidable procedures When_Connect, When_Readable, > When_Disconnect, etc are for. They are called when the event occurs. No, that is upside-down. The point is to write I/O code as if it were synchronous and half-duplex: send receive process send ... Compare it with Ada task. You write a task as if it didn't share the processor, you don't hook at timer interrupts. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de